Documentation ¶
Overview ¶
ByteSlice package help binary marshal/unmarshal small strings and byte slice
Index ¶
- type ByteSlice
- func (b ByteSlice) ReadSlice(buf *bytes.Buffer) (data []byte, err error)
- func (b ByteSlice) ReadString(buf *bytes.Buffer) (data string, err error)
- func (b ByteSlice) ReadStringSlice(buf *bytes.Buffer) (data []string, err error)
- func (b ByteSlice) WriteSlice(buf *bytes.Buffer, data []byte) (err error)
- func (b ByteSlice) WriteStringSlice(buf *bytes.Buffer, data []string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteSlice ¶
type ByteSlice struct{}
ByteSlice help binary marshal/ubmarshal byte slice
func (ByteSlice) ReadString ¶
ReadString read binary string created with WriteSlice function
func (ByteSlice) ReadStringSlice ¶
ReadString read binary string slice created with WriteStringSlice function
func (ByteSlice) WriteSlice ¶
WriteSlice return binary representation of byte slice
Click to show internal directories.
Click to hide internal directories.