## Printer Device Driver

[prev][next][parent][TOC]

### GplCompressAscii85

Description

This function performs ASCII encoding. It encodes 4 bytes in to 5 bytes out , and it converts data from a base 256 on input to a base-85 representation on output. The output is then output in ASCII with base 85.

Buffer allocation is the responsibility of the driver.

Format

    INT APIENTRY GplCompressAscii85(

                         PBYTE  pSource,         // Source input data buffer (normal Hex 256)

                         PBYTE  pDest,           // Destination output data buffer (ASCII 85)

                         INT    usSourceLen );   // Source buffer input length

Parameters

pSource (PBYTE) Pointer to input data buffer.

pDest (PBYTE) Pointer to output data buffer. It must be at least 5/4 size of pSource.

usSourceLen (LONG) Length of source buffer in bytes.

Returns

Success Count of bytes put in destination.
Failure GPLCOMPRESS_ERROR (-1)