Decodes a block of samples in this buffer.
If the binary format input in is malformed.
Returns the size in bytes of the uncompressed samples in this buffer.
The returned value is suitable to be used as the initial guess for the output buffer size when calling BufferEncode. If the buffer content exhibits very high entropy, BufferEncode is likely to overflow when using BufferSize. In these cases, increasing the buffer size by a factor of
6/5 will usually be enough. In any case, the return value of BufferEncode must always be inspected and the overflow case must always be handled properly.