Documentation ¶
Index ¶
- func BytesCompressed(v uint64) int
- func Read[B ByteReadable](b *Bytes) B
- func ReadDynamic[B ByteReadable](b *Bytes) []B
- func Reads[B ByteReadable](b *Bytes, count int) []B
- func Write[B ByteWritable](b *Bytes, writable B)
- func WriteDynamic[B ByteWritable](b *Bytes, writables []B)
- func Writes[B ByteWritable](b *Bytes, writables []B)
- type ByteReadable
- type ByteSizable
- type ByteWritable
- type Bytes
- func (b *Bytes) Clear()
- func (b *Bytes) Data() []byte
- func (b *Bytes) Flip()
- func (b *Bytes) Get() byte
- func (b *Bytes) GetBool() bool
- func (b *Bytes) GetBoolDynamic() []bool
- func (b *Bytes) GetBools(v []bool)
- func (b *Bytes) GetCompressed() int64
- func (b *Bytes) GetCompresseds(v []int64)
- func (b *Bytes) GetDynamic() []byte
- func (b *Bytes) GetFloat32() float32
- func (b *Bytes) GetFloat32Dynamic() []float32
- func (b *Bytes) GetFloat32s(v []float32)
- func (b *Bytes) GetFloat64() float64
- func (b *Bytes) GetFloat64Dynamic() []float64
- func (b *Bytes) GetFloat64s(v []float64)
- func (b *Bytes) GetInt16() int16
- func (b *Bytes) GetInt16Dynamic() []int16
- func (b *Bytes) GetInt16s(v []int16)
- func (b *Bytes) GetInt32() int32
- func (b *Bytes) GetInt32Dynamic() []int32
- func (b *Bytes) GetInt32s(v []int32)
- func (b *Bytes) GetInt64() int64
- func (b *Bytes) GetInt64Dynamic() []int64
- func (b *Bytes) GetInt64s(v []int64)
- func (b *Bytes) GetInt8() int8
- func (b *Bytes) GetInt8Dynamic() []int8
- func (b *Bytes) GetInt8s(v []int8)
- func (b *Bytes) GetUint16() uint16
- func (b *Bytes) GetUint16Dynamic() []uint16
- func (b *Bytes) GetUint16s(v []uint16)
- func (b *Bytes) GetUint32() uint32
- func (b *Bytes) GetUint32Dynamic() []uint32
- func (b *Bytes) GetUint32s(v []uint32)
- func (b *Bytes) GetUint64() uint64
- func (b *Bytes) GetUint64Dynamic() []uint64
- func (b *Bytes) GetUint64s(v []uint64)
- func (b *Bytes) GetUint8() uint8
- func (b *Bytes) GetUint8Dynamic() []uint8
- func (b *Bytes) GetUint8s(v []uint8)
- func (b *Bytes) Gets(v []byte)
- func (b *Bytes) HasRemaining() bool
- func (b Bytes) IsBig() bool
- func (b Bytes) IsLittle() bool
- func (b Bytes) IsNative() bool
- func (b *Bytes) Limit() int
- func (b *Bytes) Offset() int
- func (b *Bytes) Put(v byte)
- func (b *Bytes) PutBool(v bool)
- func (b *Bytes) PutBoolDynamic(v []bool)
- func (b *Bytes) PutBools(v []bool)
- func (b *Bytes) PutCompressed(v int64) int
- func (b *Bytes) PutCompresseds(v []int64)
- func (b *Bytes) PutDynamic(v []byte)
- func (b *Bytes) PutFloat32(v float32)
- func (b *Bytes) PutFloat32Dynamic(v []float32)
- func (b *Bytes) PutFloat32s(v []float32)
- func (b *Bytes) PutFloat64(v float64)
- func (b *Bytes) PutFloat64Dynamic(v []float64)
- func (b *Bytes) PutFloat64s(v []float64)
- func (b *Bytes) PutInt16(v int16)
- func (b *Bytes) PutInt16Dynamic(v []int16)
- func (b *Bytes) PutInt16s(v []int16)
- func (b *Bytes) PutInt32(v int32)
- func (b *Bytes) PutInt32Dynamic(v []int32)
- func (b *Bytes) PutInt32s(v []int32)
- func (b *Bytes) PutInt64(v int64)
- func (b *Bytes) PutInt64Dynamic(v []int64)
- func (b *Bytes) PutInt64s(v []int64)
- func (b *Bytes) PutInt8(v int8)
- func (b *Bytes) PutInt8Dynamic(v []int8)
- func (b *Bytes) PutInt8s(v []int8)
- func (b *Bytes) PutUint16(v uint16)
- func (b *Bytes) PutUint16Dynamic(v []uint16)
- func (b *Bytes) PutUint16s(v []uint16)
- func (b *Bytes) PutUint32(v uint32)
- func (b *Bytes) PutUint32Dynamic(v []uint32)
- func (b *Bytes) PutUint32s(v []uint32)
- func (b *Bytes) PutUint64(v uint64)
- func (b *Bytes) PutUint64Dynamic(v []uint64)
- func (b *Bytes) PutUint64s(v []uint64)
- func (b *Bytes) PutUint8(v uint8)
- func (b *Bytes) PutUint8Dynamic(v []uint8)
- func (b *Bytes) PutUint8s(v []uint8)
- func (b *Bytes) Puts(v []byte)
- func (b *Bytes) Remaining() int
- func (b *Bytes) Reserve(n int)
- func (b *Bytes) Reset(offset int)
- func (b *Bytes) SetBig()
- func (b *Bytes) SetLittle()
- func (b *Bytes) SetNative()
- func (b *Bytes) Take(n int) []byte
- func (b *Bytes) Write(writable ByteWritable)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesCompressed ¶
func Read ¶
func Read[B ByteReadable](b *Bytes) B
func ReadDynamic ¶
func ReadDynamic[B ByteReadable](b *Bytes) []B
func Reads ¶
func Reads[B ByteReadable](b *Bytes, count int) []B
func Write ¶
func Write[B ByteWritable](b *Bytes, writable B)
func WriteDynamic ¶
func WriteDynamic[B ByteWritable](b *Bytes, writables []B)
func Writes ¶
func Writes[B ByteWritable](b *Bytes, writables []B)
Types ¶
type ByteReadable ¶
type ByteReadable interface {
Read(b *Bytes)
}
type ByteSizable ¶
type ByteSizable interface {
Bytes() int
}
type ByteWritable ¶
type ByteWritable interface {
Write(b *Bytes)
}
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func (*Bytes) GetBoolDynamic ¶
func (*Bytes) GetCompressed ¶
func (*Bytes) GetCompresseds ¶
func (*Bytes) GetDynamic ¶
func (*Bytes) GetFloat32 ¶
func (*Bytes) GetFloat32Dynamic ¶
func (*Bytes) GetFloat32s ¶
func (*Bytes) GetFloat64 ¶
func (*Bytes) GetFloat64Dynamic ¶
func (*Bytes) GetFloat64s ¶
func (*Bytes) GetInt16Dynamic ¶
func (*Bytes) GetInt32Dynamic ¶
func (*Bytes) GetInt64Dynamic ¶
func (*Bytes) GetInt8Dynamic ¶
func (*Bytes) GetUint16Dynamic ¶
func (*Bytes) GetUint16s ¶
func (*Bytes) GetUint32Dynamic ¶
func (*Bytes) GetUint32s ¶
func (*Bytes) GetUint64Dynamic ¶
func (*Bytes) GetUint64s ¶
func (*Bytes) GetUint8Dynamic ¶
func (*Bytes) HasRemaining ¶
func (*Bytes) PutBoolDynamic ¶
func (*Bytes) PutCompressed ¶
func (*Bytes) PutCompresseds ¶
func (*Bytes) PutDynamic ¶
func (*Bytes) PutFloat32 ¶
func (*Bytes) PutFloat32Dynamic ¶
func (*Bytes) PutFloat32s ¶
func (*Bytes) PutFloat64 ¶
func (*Bytes) PutFloat64Dynamic ¶
func (*Bytes) PutFloat64s ¶
func (*Bytes) PutInt16Dynamic ¶
func (*Bytes) PutInt32Dynamic ¶
func (*Bytes) PutInt64Dynamic ¶
func (*Bytes) PutInt8Dynamic ¶
func (*Bytes) PutUint16Dynamic ¶
func (*Bytes) PutUint16s ¶
func (*Bytes) PutUint32Dynamic ¶
func (*Bytes) PutUint32s ¶
func (*Bytes) PutUint64Dynamic ¶
func (*Bytes) PutUint64s ¶
func (*Bytes) PutUint8Dynamic ¶
func (*Bytes) Write ¶
func (b *Bytes) Write(writable ByteWritable)
Click to show internal directories.
Click to hide internal directories.