Pattern
|
Exception | Condition |
---|---|
ArgumentNullException | source buffer cannot be null. |
ArgumentOutOfRangeException | dataLength must be greater than or equal to one. |
ArgumentOutOfRangeException | bufferLength must be at least as large as dataLength. |
ArgumentOutOfRangeException | bufferLength must be at least as large as is necessary to fit the maximum possible size of the decompressed data. |
ArgumentOutOfRangeException | Actual length of source buffer is less than specified bufferLength. |
Decompression is performed inline. The source buffer must be large enough to contain the maximum possible size of the decompressed buffer. This maximum size can be obtained by using the MaximumSizeDecompressed(Int32) method.
As an optimization this function is using pointers to native structures, as such the endian order decoding and encoding of the values will always be in the native endian order of the operating system.