SChunk 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.iterchunks

Iterate over self chunks.

SChunk.iterchunks_info

Iterate over self chunks, providing info on index and special values.

SChunk.fill_special

Fill the SChunk with a special value.

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.__len__

Return the number of items in the SChunk.

SChunk.to_cframe

Get a bytes object containing the serialized SChunk instance.

SChunk.postfilter

Decorator to set a function as a postfilter.

SChunk.remove_postfilter

Remove the postfilter from the SChunk instance.

SChunk.filler

Decorator to set a filler function.

SChunk.prefilter

Decorator to set a function as a prefilter.

SChunk.remove_prefilter

Remove the prefilter from the SChunk instance.

Attributes#

Functions#

schunk_from_cframe(cframe[, copy])

Create a SChunk instance out of a contiguous frame buffer.