Documentation ¶
Index ¶
Constants ¶
View Source
const ( SizePowerSize = 1 // byte StatusSize = 1 // byte KeyLenSize = 2 // bytes ValLenSize = 4 // bytes ExpireSize = 4 // bytes HeaderSize = SizePowerSize + StatusSize + KeyLenSize + ValLenSize + ExpireSize // bytes StatusOffset = SizePowerSize )
View Source
const ( StatusOK = 212 StatusDeleted = 106 )
Variables ¶
This section is empty.
Functions ¶
func NextPowerOfTwo ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) WriteHeader ¶
func (*Buffer) WriteValue ¶
type Header ¶
func UnmarshalHeader ¶
Click to show internal directories.
Click to hide internal directories.