U_CAPI void U_EXPORT2 scsu_decompress (UnicodeCompressor *comp, UChar **target, const UChar *targetLimit, const uint8_t **source, const uint8_t *sourceLimit, UErrorCode *status)

Decompress a byte array into a Unicode character array

Documentation

Decompress a byte array into a Unicode character array. This function will either completely fill the output buffer, or consume the entire input. If the source data is completely compressed, status will be set to U_ZERO_ERROR. If the source data is not completely compressed, status will be set to U_INDEX_OUTOFBOUNDS_ERROR. If this occurs, larger buffers should be allocated, or data flushed, and the function should be called again with the new buffers.
Returns:
The number of Unicode characters writeten to target.
Parameters:
comp - A pointer to a previously-initialized UnicodeDecompressor
target - I/O parameter. On input, a pointer to a buffer of Unicode characters to receive the compressed data. On output, points to the character following the last character written. This buffer must be at least 2 bytes.
targetLimit - A pointer to the end of the array target.
source - I/O parameter. On input, a pointer to a buffer of bytes to be decompressed. On output, points to the byte following the last byte decompressed.
sourceLimit - A pointer to the end of the array source.
status - A pointer to an UErrorCode to receive any errors.
See Also:
compress

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de