Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadBuffer ¶
type ReadBuffer interface { ReadBit() (bool, error) ReadBool() (bool, error) ReadInt8() (int8, error) ReadInt16() (int16, error) ReadInt32() (int32, error) ReadInt64() (int64, error) ReadUint8() (uint8, error) ReadUint16() (uint16, error) ReadUint32() (uint32, error) ReadUint64() (uint64, error) ReadFloat32() (float32, error) ReadFloat64() (float64, error) ReadString() (string, error) ReadBytes() ([]byte, error) }
func NewReadBuffer ¶
func NewReadBuffer(buffer *bytes.Buffer) ReadBuffer
type WriteBuffer ¶
type WriteBuffer interface { PutBit(val bool) error PutBool(val bool) error PutInt8(val int8) error PutInt16(val int16) error PutInt32(val int32) error PutInt64(val int64) error PutUint8(val uint8) error PutUint16(val uint16) error PutUint32(val uint32) error PutUint64(val uint64) error PutFloat32(val float32) error PutFloat64(val float64) error PutString(val string) error PutBytes(val []byte) error Length() int Bytes() []byte }
func NewWriteBuffer ¶
func NewWriteBuffer(initialCapacity int) WriteBuffer
Click to show internal directories.
Click to hide internal directories.