package
2.0.2
Repository: https://github.com/cockroachdb/pebble.git
Documentation: pkg.go.dev

# Functions

DecodeStr decodes a varint encoded string from data, returning the remainder of data and the decoded string.
IsEmpty returns true iff the batch contains zero keys.
Read constructs a Reader from an encoded batch representation, ignoring the contents of the Header.
ReadHeader reads the contents of the batch header.
ReadSeqNum reads the sequence number encoded within the batch.
SetCount mutates the provided batch representation, storing the provided count in its header.
SetSeqNum mutates the provided batch representation, storing the provided sequence number in its header.

# Constants

HeaderLen is the length of the batch header in bytes.

# Variables

ErrInvalidBatch indicates that a batch is invalid or otherwise corrupted.

# Structs

Header describes the contents of a batch header.

# Type aliases

Reader iterates over the entries contained in a batch.