Documentation ¶
Index ¶
- func FreePack(buf []byte)
- func Read2Bytes(b *[]byte) (s []byte)
- func Read2BytesUsafe(b *[]byte) (s []byte)
- func Read2String(b *[]byte) (s string)
- func ReadInt32(b *[]byte) int32
- func ReadInt64(b *[]byte) int64
- func ReadPType(r io.Reader) (byte, error)
- func ReadPack(r io.Reader) ([]byte, error)
- func ReadPackLength(r io.Reader) (uint16, error)
- func ReadPackTypeAndLength(r io.Reader) (byte, uint16, error)
- func ReadUint16(b *[]byte) uint16
- func ReadUint32(b *[]byte) uint32
- func ReadUint64(b *[]byte) uint64
- func ReadUint8(b *[]byte) uint8
- func Write2Bytes(b *[]byte, v []byte)
- func Write2String(b *[]byte, v string)
- func WriteInt32(b *[]byte, v int32)
- func WriteInt64(b *[]byte, v int64)
- func WritePackLength(pack []byte)
- func WriteUint16(b *[]byte, v uint16)
- func WriteUint32(b *[]byte, v uint32)
- func WriteUint64(b *[]byte, v uint64)
- func WriteUint8(b *[]byte, v uint8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read2Bytes ¶
func Read2String ¶
func ReadUint16 ¶
func ReadUint32 ¶
func ReadUint64 ¶
func Write2Bytes ¶
func Write2String ¶
func WriteInt32 ¶
func WriteInt64 ¶
func WritePackLength ¶
func WritePackLength(pack []byte)
func WriteUint16 ¶
func WriteUint32 ¶
func WriteUint64 ¶
func WriteUint8 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.