Skip to main content

extract_cell_bytes

Function extract_cell_bytes 

Source
pub fn extract_cell_bytes(
    tile: &SparseTile,
    coord: &[CoordValue],
) -> ArrayResult<Option<Vec<u8>>>
Expand description

Extract the encoded CellPayload bytes for a specific coord from a SparseTile.

Returns None when the coord is not present in the tile. Encodes the matched row’s attrs + valid-time bounds back into the CellPayload wire format so the bytes can be fed directly to crate::query::ceiling::ceiling_resolve_cell.

The returned Vec<u8> is always freshly allocated (no lifetime coupling to the tile).