SChunk.insert_data#

SChunk.insert_data(nchunk, data, copy)#

Insert the data in the specified position in the SChunk.

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

  • data (bytes object) – The data that will be compressed and inserted as a chunk.

  • copy (bool) – Whether to internally do a copy of the chunk to insert it or not.

Returns:

out – The number of chunks in the SChunk.

Return type:

int

Raises:

RunTimeError – If some problem was detected.