Documentation ¶
Index ¶
- Variables
- func ReadBytes(buf []byte, offset int, length int) ([]byte, int, error)
- func ReadInt16(buf []byte, offset int) (uint16, int, error)
- func ReadInt8(buf []byte, offset int) (uint8, int, error)
- func ReadString(buf []byte, offset int, length int) (string, int, error)
- func WriteBytes(buf []byte, offset int, bytes []byte) int
- func WriteInt16(buf []byte, offset int, value uint16) int
- func WriteInt8(buf []byte, offset int, value uint8) int
- func WriteString(buf []byte, offset int, value string) int
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReadFromBuf = errors.New("error read data from buffer")
)
Functions ¶
func WriteBytes ¶
Write bytes array length and array itself into buffer return offset after write
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.