SChunk.insert_chunk#

SChunk.insert_chunk(nchunk, chunk)#

Insert an already compressed chunk in the SChunk.

Parameters:
  • nchunk (int) – The position in which the chunk will be inserted.

  • chunk (bytes object) – The compressed chunk.

Returns:

out – The number of chunks in the SChunk.

Return type:

int

Raises:

RunTimeError – If some problem was detected.