Documentation ¶
Index ¶
- Constants
- Variables
- type ByteArray
- func (ba *ByteArray) Buffer() *bytes.Buffer
- func (ba *ByteArray) Bytes() []byte
- func (ba *ByteArray) Clear()
- func (ba *ByteArray) Compress(algorithm compressAlgorithm) (err error)
- func (ba *ByteArray) Decompress(algorithm compressAlgorithm) (err error)
- func (ba *ByteArray) Read(amount uint32) ([]byte, error)
- func (ba *ByteArray) ReadBool() (bool, error)
- func (ba *ByteArray) ReadByte() (byte, error)
- func (ba *ByteArray) ReadInt() (int, error)
- func (ba *ByteArray) ReadInt16() (int16, error)
- func (ba *ByteArray) ReadInt32() (int32, error)
- func (ba *ByteArray) ReadInt8() (int8, error)
- func (ba *ByteArray) ReadShort() (uint16, error)
- func (ba *ByteArray) ReadString() string
- func (ba *ByteArray) ReadUTF() (string, error)
- func (ba *ByteArray) ReadUint16() (uint16, error)
- func (ba *ByteArray) ReadUint32() (uint32, error)
- func (ba *ByteArray) ReadUint8() (byte, error)
- func (ba *ByteArray) Size() uint32
- func (ba *ByteArray) Skip(n int) error
- func (ba *ByteArray) Write(bb []byte)
- func (ba *ByteArray) WriteBool(is bool)
- func (ba *ByteArray) WriteByte(b byte)
- func (ba *ByteArray) WriteHex(s string) error
- func (ba *ByteArray) WriteInt(i int)
- func (ba *ByteArray) WriteInt16(i int16)
- func (ba *ByteArray) WriteInt32(i int32)
- func (ba *ByteArray) WriteInt8(b int8)
- func (ba *ByteArray) WriteShort(i uint16)
- func (ba *ByteArray) WriteString(s string)
- func (ba *ByteArray) WriteUTF(s string)
- func (ba *ByteArray) WriteUint16(i uint16)
- func (ba *ByteArray) WriteUint32(i uint32)
- func (ba *ByteArray) WriteUint8(b byte)
Constants ¶
View Source
const ( CompressAlgorithmZLIB compressAlgorithm = iota CompressAlgorithmDeflate )
Variables ¶
View Source
var ( ErrOutOfBounds = errors.New("out of bounds") ErrMalformedData = errors.New("malformed data") )
Functions ¶
This section is empty.
Types ¶
type ByteArray ¶
type ByteArray struct {
// contains filtered or unexported fields
}
func (*ByteArray) Decompress ¶
func (*ByteArray) ReadString ¶
func (*ByteArray) ReadUint16 ¶
func (*ByteArray) ReadUint32 ¶
func (*ByteArray) WriteInt16 ¶
func (*ByteArray) WriteInt32 ¶
func (*ByteArray) WriteString ¶
func (*ByteArray) WriteUint16 ¶
func (*ByteArray) WriteUint32 ¶
func (*ByteArray) WriteUint8 ¶
Click to show internal directories.
Click to hide internal directories.