itacart.serialization.tree_blob.deserialize_from_blob

itacart.serialization.tree_blob.deserialize_from_blob(blob)[source]

Decode a blob to the index it stores.

A TreeBlob stores a region, not a filling: the resolution a fill ran at is not recoverable from the bytes because it was never in them. Callers needing a uniform resolution hold that number themselves and pass it to itacart.uncompact_cells().

Parameters:

blob (bytes) – The binary blob.

Return type:

str

Returns:

The compositional index string.

Raises:

MalformedBlobError – If the blob fails structural validation.