Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + func ConsumeBytes(r Reader, bytes uint64) uint64 + func ReadInt(r Reader, bits int32) int64 + func ReadUint(r Reader, bits int32) uint64 + func Write(w Writer, v interface{}) + func WriteBytes(w Writer, v uint8, count int32) + func WriteInt(w Writer, bits int32, v int64) + func WriteUint(w Writer, bits int32, v uint64) + type BitStream struct + Data []byte + ReadPos uint32 + WritePos uint32 + func (s *BitStream) CanRead(count uint32) bool + func (s *BitStream) Read(count uint32) uint64 + func (s *BitStream) ReadBit() uint64 + func (s *BitStream) Write(bits uint64, count uint32) + func (s *BitStream) WriteBit(bit uint64) + type Reader interface + Bool func() bool + Count func() uint32 + Data func([]byte) + Error func() error + Float16 func() f16.Number + Float32 func() float32 + Float64 func() float64 + Int16 func() int16 + Int32 func() int32 + Int64 func() int64 + Int8 func() int8 + SetError func(error) + String func() string + Uint16 func() uint16 + Uint32 func() uint32 + Uint64 func() uint64 + Uint8 func() uint8 + type Writer interface + Bool func(bool) + Data func([]byte) + Error func() error + Float16 func(f16.Number) + Float32 func(float32) + Float64 func(float64) + Int16 func(int16) + Int32 func(int32) + Int64 func(int64) + Int8 func(int8) + SetError func(error) + String func(string) + Uint16 func(uint16) + Uint32 func(uint32) + Uint64 func(uint64) + Uint8 func(uint8) Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021