Super-chunk API#

Methods#

SChunk.__init__

Create a new super-chunk.

SChunk.append_data

Append a data buffer to the SChunk.

SChunk.decompress_chunk

Decompress the chunk given by its index nchunk.

SChunk.delete_chunk

Delete the specified chunk from the SChunk.

SChunk.get_chunk

Return the compressed chunk that is in the SChunk.

SChunk.insert_chunk

Insert an already compressed chunk in the SChunk.

SChunk.insert_data

Insert the data in the specified position in the SChunk.

SChunk.update_chunk

Update an existing chunk in the SChunk.

SChunk.update_data

Update the chunk in the nchunk-th position with the given data.

SChunk.get_slice

Get a slice from start to stop.

SChunk.__getitem__

Get a slice from the SChunk.

SChunk.__setitem__

Set slice to value.

SChunk.to_cframe

Get a bytes object containing the serialized SChunk instance.

Attributes#