Skip to main content

encode_batch

Function encode_batch 

Source
fn encode_batch(
    header: Header,
    entries: Vec<Entry>,
    releases: &BTreeMap<RegionId, EntryId>,
) -> Result<EncodedObject>
Expand description

Encodes the entries of a batch, and its release records as the single entry of RELEASE_REGION_ID, whose id is at position 1 of the object; segments are ordered by region id, so it is the last segment.