Documentation
¶
Index ¶
- Variables
- func AppendBool(buf []byte, v bool) []byte
- func AppendByte(buf []byte, v byte) []byte
- func AppendBytes(buf []byte, data []byte) []byte
- func AppendInt64(buf []byte, v int64) []byte
- func AppendOptString(buf []byte, s *string) []byte
- func AppendString(buf []byte, s string) []byte
- func ReadBool(data []byte) (bool, []byte, error)
- func ReadByte(data []byte) (byte, []byte, error)
- func ReadBytes(data []byte) ([]byte, []byte, error)
- func ReadInt64(data []byte) (int64, []byte, error)
- func ReadOptString(data []byte) (*string, []byte, error)
- func ReadString(data []byte) (string, []byte, error)
- func ReadUint32(data []byte) (uint32, []byte, error)
- func ReadUint64(data []byte) (uint64, []byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AppendUint32 = binary.BigEndian.AppendUint32 AppendUint64 = binary.BigEndian.AppendUint64 )
View Source
var ( // ErrCorruptState indicates stream failed encoding invariants ErrCorruptState = errors.New("corrupt encoded state") )
Functions ¶
func AppendBool ¶
func AppendByte ¶
func AppendBytes ¶
func AppendInt64 ¶
func AppendOptString ¶
func AppendString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.