Versions in this module Expand all Collapse all v1 v1.0.1 Aug 22, 2023 Changes in this version + const FALSE + const SIZEOF_1_BYTE + const SIZEOF_2_BYTE + const SIZEOF_4_BYTE + const SIZEOF_8_BYTE + const TRUE v1.0.0 Aug 22, 2023 Changes in this version + var ErrorPositionOverflow = errors.New("Data Read to the index exceeds the limit") + var ErrorReadOverflow = errors.New("Data Read to the index exceeds the limit") + var ErrorWriteOverflow = errors.New("Data written to the index exceeds the limit") + type ByteBuffer struct + func NewByteBuffer(cap int, order binary.ByteOrder) *ByteBuffer + func (buf *ByteBuffer) Buffer() []byte + func (buf *ByteBuffer) Cap() int + func (buf *ByteBuffer) Data() []byte + func (buf *ByteBuffer) GetUInt16(offset int) (value uint16, err error) + func (buf *ByteBuffer) GetUInt32(offset int) (value uint32, err error) + func (buf *ByteBuffer) GetUInt64(offset int) (value uint64, err error) + func (buf *ByteBuffer) Length() int + func (buf *ByteBuffer) Position() int + func (buf *ByteBuffer) PutUInt16(offset int, value uint16) error + func (buf *ByteBuffer) PutUInt32(offset int, value uint32) error + func (buf *ByteBuffer) PutUInt64(offset int, value uint64) error + func (buf *ByteBuffer) ReadBoolean() (bool, error) + func (buf *ByteBuffer) ReadBytes(value []byte, length int) error + func (buf *ByteBuffer) ReadFloat32() (float32, error) + func (buf *ByteBuffer) ReadFloat64() (float64, error) + func (buf *ByteBuffer) ReadInt16() (int16, error) + func (buf *ByteBuffer) ReadInt32() (int32, error) + func (buf *ByteBuffer) ReadInt64() (int64, error) + func (buf *ByteBuffer) ReadInt8() (byte, error) + func (buf *ByteBuffer) ReadString(length int) (string, error) + func (buf *ByteBuffer) ReadUInt16() (uint16, error) + func (buf *ByteBuffer) ReadUInt32() (uint32, error) + func (buf *ByteBuffer) ReadUInt64() (uint64, error) + func (buf *ByteBuffer) Reset() + func (buf *ByteBuffer) SetOrder(order binary.ByteOrder) + func (buf *ByteBuffer) SetPosition(asbOffset int) error + func (buf *ByteBuffer) WriteBoolean(value bool) error + func (buf *ByteBuffer) WriteBytes(value []byte) error + func (buf *ByteBuffer) WriteFloat32(value float32) error + func (buf *ByteBuffer) WriteFloat64(value float64) error + func (buf *ByteBuffer) WriteInt16(value int16) error + func (buf *ByteBuffer) WriteInt32(value int32) error + func (buf *ByteBuffer) WriteInt64(value int64) error + func (buf *ByteBuffer) WriteInt8(value byte) error + func (buf *ByteBuffer) WriteString(value string) (wlen int, err error) + func (buf *ByteBuffer) WriteUInt16(value uint16) error + func (buf *ByteBuffer) WriteUInt32(value uint32) error + func (buf *ByteBuffer) WriteUInt64(value uint64) error