data

package
v0.0.0-...-20810c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesCompressed

func BytesCompressed(v uint64) int

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 NewBytes

func NewBytes(capacity int) *Bytes

func (*Bytes) Clear

func (b *Bytes) Clear()

func (*Bytes) Data

func (b *Bytes) Data() []byte

func (*Bytes) Flip

func (b *Bytes) Flip()

func (*Bytes) Get

func (b *Bytes) Get() byte

func (*Bytes) GetBool

func (b *Bytes) GetBool() bool

func (*Bytes) GetBoolDynamic

func (b *Bytes) GetBoolDynamic() []bool

func (*Bytes) GetBools

func (b *Bytes) GetBools(v []bool)

func (*Bytes) GetCompressed

func (b *Bytes) GetCompressed() int64

func (*Bytes) GetCompresseds

func (b *Bytes) GetCompresseds(v []int64)

func (*Bytes) GetDynamic

func (b *Bytes) GetDynamic() []byte

func (*Bytes) GetFloat32

func (b *Bytes) GetFloat32() float32

func (*Bytes) GetFloat32Dynamic

func (b *Bytes) GetFloat32Dynamic() []float32

func (*Bytes) GetFloat32s

func (b *Bytes) GetFloat32s(v []float32)

func (*Bytes) GetFloat64

func (b *Bytes) GetFloat64() float64

func (*Bytes) GetFloat64Dynamic

func (b *Bytes) GetFloat64Dynamic() []float64

func (*Bytes) GetFloat64s

func (b *Bytes) GetFloat64s(v []float64)

func (*Bytes) GetInt16

func (b *Bytes) GetInt16() int16

func (*Bytes) GetInt16Dynamic

func (b *Bytes) GetInt16Dynamic() []int16

func (*Bytes) GetInt16s

func (b *Bytes) GetInt16s(v []int16)

func (*Bytes) GetInt32

func (b *Bytes) GetInt32() int32

func (*Bytes) GetInt32Dynamic

func (b *Bytes) GetInt32Dynamic() []int32

func (*Bytes) GetInt32s

func (b *Bytes) GetInt32s(v []int32)

func (*Bytes) GetInt64

func (b *Bytes) GetInt64() int64

func (*Bytes) GetInt64Dynamic

func (b *Bytes) GetInt64Dynamic() []int64

func (*Bytes) GetInt64s

func (b *Bytes) GetInt64s(v []int64)

func (*Bytes) GetInt8

func (b *Bytes) GetInt8() int8

func (*Bytes) GetInt8Dynamic

func (b *Bytes) GetInt8Dynamic() []int8

func (*Bytes) GetInt8s

func (b *Bytes) GetInt8s(v []int8)

func (*Bytes) GetUint16

func (b *Bytes) GetUint16() uint16

func (*Bytes) GetUint16Dynamic

func (b *Bytes) GetUint16Dynamic() []uint16

func (*Bytes) GetUint16s

func (b *Bytes) GetUint16s(v []uint16)

func (*Bytes) GetUint32

func (b *Bytes) GetUint32() uint32

func (*Bytes) GetUint32Dynamic

func (b *Bytes) GetUint32Dynamic() []uint32

func (*Bytes) GetUint32s

func (b *Bytes) GetUint32s(v []uint32)

func (*Bytes) GetUint64

func (b *Bytes) GetUint64() uint64

func (*Bytes) GetUint64Dynamic

func (b *Bytes) GetUint64Dynamic() []uint64

func (*Bytes) GetUint64s

func (b *Bytes) GetUint64s(v []uint64)

func (*Bytes) GetUint8

func (b *Bytes) GetUint8() uint8

func (*Bytes) GetUint8Dynamic

func (b *Bytes) GetUint8Dynamic() []uint8

func (*Bytes) GetUint8s

func (b *Bytes) GetUint8s(v []uint8)

func (*Bytes) Gets

func (b *Bytes) Gets(v []byte)

func (*Bytes) HasRemaining

func (b *Bytes) HasRemaining() bool

func (Bytes) IsBig

func (b Bytes) IsBig() bool

func (Bytes) IsLittle

func (b Bytes) IsLittle() bool

func (Bytes) IsNative

func (b Bytes) IsNative() bool

func (*Bytes) Limit

func (b *Bytes) Limit() int

func (*Bytes) Offset

func (b *Bytes) Offset() int

func (*Bytes) Put

func (b *Bytes) Put(v byte)

func (*Bytes) PutBool

func (b *Bytes) PutBool(v bool)

func (*Bytes) PutBoolDynamic

func (b *Bytes) PutBoolDynamic(v []bool)

func (*Bytes) PutBools

func (b *Bytes) PutBools(v []bool)

func (*Bytes) PutCompressed

func (b *Bytes) PutCompressed(v int64) int

func (*Bytes) PutCompresseds

func (b *Bytes) PutCompresseds(v []int64)

func (*Bytes) PutDynamic

func (b *Bytes) PutDynamic(v []byte)

func (*Bytes) PutFloat32

func (b *Bytes) PutFloat32(v float32)

func (*Bytes) PutFloat32Dynamic

func (b *Bytes) PutFloat32Dynamic(v []float32)

func (*Bytes) PutFloat32s

func (b *Bytes) PutFloat32s(v []float32)

func (*Bytes) PutFloat64

func (b *Bytes) PutFloat64(v float64)

func (*Bytes) PutFloat64Dynamic

func (b *Bytes) PutFloat64Dynamic(v []float64)

func (*Bytes) PutFloat64s

func (b *Bytes) PutFloat64s(v []float64)

func (*Bytes) PutInt16

func (b *Bytes) PutInt16(v int16)

func (*Bytes) PutInt16Dynamic

func (b *Bytes) PutInt16Dynamic(v []int16)

func (*Bytes) PutInt16s

func (b *Bytes) PutInt16s(v []int16)

func (*Bytes) PutInt32

func (b *Bytes) PutInt32(v int32)

func (*Bytes) PutInt32Dynamic

func (b *Bytes) PutInt32Dynamic(v []int32)

func (*Bytes) PutInt32s

func (b *Bytes) PutInt32s(v []int32)

func (*Bytes) PutInt64

func (b *Bytes) PutInt64(v int64)

func (*Bytes) PutInt64Dynamic

func (b *Bytes) PutInt64Dynamic(v []int64)

func (*Bytes) PutInt64s

func (b *Bytes) PutInt64s(v []int64)

func (*Bytes) PutInt8

func (b *Bytes) PutInt8(v int8)

func (*Bytes) PutInt8Dynamic

func (b *Bytes) PutInt8Dynamic(v []int8)

func (*Bytes) PutInt8s

func (b *Bytes) PutInt8s(v []int8)

func (*Bytes) PutUint16

func (b *Bytes) PutUint16(v uint16)

func (*Bytes) PutUint16Dynamic

func (b *Bytes) PutUint16Dynamic(v []uint16)

func (*Bytes) PutUint16s

func (b *Bytes) PutUint16s(v []uint16)

func (*Bytes) PutUint32

func (b *Bytes) PutUint32(v uint32)

func (*Bytes) PutUint32Dynamic

func (b *Bytes) PutUint32Dynamic(v []uint32)

func (*Bytes) PutUint32s

func (b *Bytes) PutUint32s(v []uint32)

func (*Bytes) PutUint64

func (b *Bytes) PutUint64(v uint64)

func (*Bytes) PutUint64Dynamic

func (b *Bytes) PutUint64Dynamic(v []uint64)

func (*Bytes) PutUint64s

func (b *Bytes) PutUint64s(v []uint64)

func (*Bytes) PutUint8

func (b *Bytes) PutUint8(v uint8)

func (*Bytes) PutUint8Dynamic

func (b *Bytes) PutUint8Dynamic(v []uint8)

func (*Bytes) PutUint8s

func (b *Bytes) PutUint8s(v []uint8)

func (*Bytes) Puts

func (b *Bytes) Puts(v []byte)

func (*Bytes) Remaining

func (b *Bytes) Remaining() int

func (*Bytes) Reserve

func (b *Bytes) Reserve(n int)

Ensures there are at least n bytes available in the buffer.

func (*Bytes) Reset

func (b *Bytes) Reset(offset int)

func (*Bytes) SetBig

func (b *Bytes) SetBig()

func (*Bytes) SetLittle

func (b *Bytes) SetLittle()

func (*Bytes) SetNative

func (b *Bytes) SetNative()

func (*Bytes) Take

func (b *Bytes) Take(n int) []byte

func (*Bytes) Write

func (b *Bytes) Write(writable ByteWritable)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL