Documentation
¶
Overview ¶
package sbe implements simple binary encoding formats for serializing and deserializing data.
Index ¶
- func AppendLP(out []byte, x []byte) []byte
- func AppendLP16(out []byte, x []byte) []byte
- func AppendUVarint(out []byte, x uint64) []byte
- func AppendUint16(out []byte, x uint16) []byte
- func AppendUint32(out []byte, x uint32) []byte
- func AppendUint64(out []byte, x uint64) []byte
- func ReadLP(x []byte) (data []byte, rest []byte, _ error)
- func ReadLP16(x []byte) (ret []byte, rest []byte, _ error)
- func ReadN(data []byte, n int) ([]byte, []byte, error)
- func ReadUVarint(data []byte) (uint64, []byte, error)
- func ReadUint16(data []byte) (uint16, []byte, error)
- func ReadUint64(data []byte) (uint64, []byte, error)
- type Marshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLP ¶
AppendLP appends a length-prefixed byte slice to out. the length is encoded as a varint
func AppendLP16 ¶
AppendLP16 appends a length-prefixed byte slice to out. the length is encoded as a 16-bit little-endian integer.
func AppendUVarint ¶
func AppendUint16 ¶
func AppendUint32 ¶
func AppendUint64 ¶
func ReadLP ¶
ReadLP reads a length-prefixed byte slice from data. ReadLP reads the format output by AppendLP.
Types ¶
Click to show internal directories.
Click to hide internal directories.