# Functions
New creates a new chunk according to the encoding set by the DefaultEncoding flag.
NewDesc creates a new Desc pointing to the provided chunk.
NewForEncoding allows configuring what chunk type you want.
RangeValues is a utility function that retrieves all values within the given range from an Iterator.
# Constants
ChunkLen is the length of a chunk in bytes.
Clone is the label value for clone chunk ops.
A Desc creation with refCount=1.
Delta encoding.
DoubleDelta encoding.
Drop is the label value for drop chunk ops.
Evict is the label value for evict chunk desc ops.
Load is the label value for load chunk and chunk desc ops.
OpTypeLabel is the label name for chunk operation types.
PersistAndUnpin is the label value for persist chunk ops.
Pin is the label value for pin chunk ops (excludes pin on creation).
Transcode is the label value for transcode chunk ops.
Unpin is the label value for unpin chunk ops (excludes the unpin on persisting).
Varbit encoding.
# Variables
DefaultEncoding can be changed via a flag.
Usually, a separate file for instrumentation is frowned upon.
NumMemChunks is the total number of chunks in memory.
Usually, a separate file for instrumentation is frowned upon.
Usually, a separate file for instrumentation is frowned upon.
# Structs
Desc contains meta-data for a chunk.
EvictRequest is a request to evict a chunk from memory.
# Type aliases
Encoding defines which encoding we are using, delta, doubledelta, or varbit.