Skip to main content

MAX_OFFSET_SLOTS

Constant MAX_OFFSET_SLOTS 

Source
pub const MAX_OFFSET_SLOTS: usize = 256;
Expand description

Number of positional-offset slots addressable by Op::MarkOffset and Op::EmitOffset. Slot indices must be strictly below this bound.

The bound is 256 so the PDF layout candidate can mark one slot per indirect object (indices 0..=254) while reserving slot 255 for the most recent classic xref section start. Slot indices remain u8 on the wire.