XzDecoder.needsMoreData

After calling processData, this will return true if more data is required to fill the destination buffer.

Please note that needsMoreData can return false before decompression is completely finished; this would simply mean it satisfied the request to fill that one buffer.

In this case, you will want to concatenate unprocessed with new data, then call processData again. Remember that unprocessed is a slice of the tail of the source buffer you passed to processData, so if you want to reuse the same buffer, you may want to memmove it to the head, then fill he tail again.

struct XzDecoder
bool
needsMoreData
()

Meta