Module constants

Source
Expand description

Various constants used for Inspect.

Constants§

ARRAY_PAYLOAD_METADATA_SIZE_BYTES
Length in bytes of metadata in the payload of an array block.
DEFAULT_VMO_SIZE_BYTES
Default number of bytes for the VMO: 256K
EXPONENTIAL_HISTOGRAM_EXTRA_SLOTS
Extra slots for an exponential histogram: 3 parameter slots (floor, initial step and step multiplier) and 2 overflow slots.
HEADER_MAGIC_NUMBER
Magic number for the Header block. “INSP” in UTF-8 little-endian.
HEADER_ORDER
The order of the header block.
HEADER_SIZE_BYTES
Size of the a VMO block header.
HEADER_VERSION_NUMBER
Version number for the Header block.
LINEAR_HISTOGRAM_EXTRA_SLOTS
Extra slots for a linear histogram: 2 parameter slots (floor, step size) and 2 overflow slots.
MAX_ORDER_SHIFT
The shift for order NUM_ORDERS-1 (the maximum order)
MAX_ORDER_SIZE
The size for order NUM_ORDERS-1 (the maximum order)
MAX_VMO_SIZE
Maximum size for a VMO: 100MB
MINIMUM_VMO_SIZE_BYTES
Minimum size for the VMO: 4K
MIN_ORDER_SHIFT
The shift for order 0.
MIN_ORDER_SIZE
The size for order 0.
NUM_ORDERS
Maximum number order of a block.
PAGE_SIZE_BYTES
Bytes per page
STRING_REFERENCE_TOTAL_LENGTH_BYTES
The number of bytes in the payload of a STRING_REFERENCE allotted to the total length.
VMO_FROZEN
This generation count indicates a VMO is frozen. It is even to allow creating an inspector that can write to the VMO.