package
0.0.0-20240716132614-1643519e6f91
Repository: https://github.com/triggermail/luci-go.git
Documentation: pkg.go.dev
# Functions
ReadBytes reads an encoded []byte from buf, returning the number of bytes read, and any read error encountered.
ReadFloat64 reads a memcmp-sortable float from buf (as written by WriteFloat64).
ReadInt decodes a cmpbin-encoded number from a ByteReader.
ReadString reads an encoded string from buf, returning the number of bytes read, and any read error encountered.
ReadUint decodes a cmpbin-encoded positive number from a ByteReader.
WriteBytes writes an encoded []byte to buf, returning the number of bytes written, and any write error encountered.
WriteFloat64 writes a memcmp-sortable float to buf.
WriteInt val as a cmpbin Int to the ByteWriter.
WriteString writes an encoded string to buf, returning the number of bytes written, and any write error encountered.
WriteUint writes mag to the ByteWriter.
# Constants
MaxIntLenN is the maximum length of a cmpbin-encoded N-bit integer (signed or unsigned).
MaxIntLenN is the maximum length of a cmpbin-encoded N-bit integer (signed or unsigned).
MaxIntLenN is the maximum length of a cmpbin-encoded N-bit integer (signed or unsigned).
# Variables
ErrByteLimitExceeded is returned from ReadBytes and ReadString when they attempt to read more than ReadByteLimit bytes.
ErrOverflow is returned when reading an number which is too large for the destination type (either uint64 or int64).
ErrUnderflow is returned when reading an number which is too small for the destination type (either uint64 or int64).
ReadByteLimit is the limit of how many bytes ReadBytes and ReadString are willing to deserialize before returning ErrByteLimitExceeded.