|
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_BUFFER_OVERFLOW_ERROR . If this occurs, larger buffers should be allocated, or data flushed, and the function should be called again with the new buffers. -
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. |
-
Returns:
-
The number of Unicode characters writeten to
target .
-
See also:
-
compress
-
Stable:
-
-
Deprecated:
-
To be replaced by scsu encoding converter
|