- SChunk.get_slice(start=0, stop=None, out=None)#
Get a slice from
start¶ (int) – The index where the slice will begin. Default is 0.
stop¶ (int) – The index where the slice will end (without including it). Default is until the SChunk ends.
out¶ (bytes-like object or bytearray) – The destination object (supporting the Buffer Protocol) to fill. The user must make sure that it has enough capacity for hosting the decompressed data. Default is None, meaning that a new bytes object is created, filled and returned.
out – The decompressed slice in form of a Python str / bytes object if
outis None. Otherwise, it will return None as the result will already be in
- Return type:
str/bytes or None