Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder is a low-level decoder for decoding basic types.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder is a low-level encoder that can be used for encoding basic types.
func (*Encoder) PutUint32 ¶
PutUint32 encodes a uint32 and returns the number of bytes written which is always 4.
func (*Encoder) PutUint64 ¶
PutUint64 encodes a uint64 and returns the number of bytes written which is always 8.
func (*Encoder) PutUvarint ¶
PutUvarint encodes a variable-sized unsigned integer and returns the number of bytes written.
Click to show internal directories.
Click to hide internal directories.