SChunk.update_data#

SChunk.update_data(nchunk, data, copy)#

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

Parameters:
  • nchunk (int) – The position identifying the chunk that will be updated.

  • data (bytes object) – The data that will be compressed and will replace the content of the old one.

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

Returns:

out – The number of chunks in the SChunk.

Return type:

int

Raises:

RunTimeError – If some problem was detected.