NTSTATUS RtlReserveChunkLZNT1( IN OUT PUCHAR *CompressedBuffer, IN PUCHAR EndOfCompressedBufferPlus1, OUT PUCHAR *ChunkBuffer, IN ULONG ChunkSize ); Routine Description: This routine reserves space for a chunk of the specified size in the buffer, writing in a chunk header if necessary (uncompressed or all zeros case). On return the CompressedBuffer pointer points to the next chunk. Arguments: CompressedBuffer - Supplies a pointer to the current chunk in the compressed data, and returns pointing to the next chunk EndOfCompressedBufferPlus1 - Points at first byte beyond compressed buffer ChunkBuffer - Receives a pointer to the chunk, if ChunkSize is nonzero, else undefined ChunkSize - Supplies the compressed size of the chunk to be received. Two special values are 0 and MAX_UNCOMPRESSED_CHUNK_SIZE (4096). 0 means the chunk should be filled with a pattern that equates to 4096 0's. 4096 implies that the compression routine should prepare to receive all of the data in uncompressed form. Return Value: STATUS_SUCCESS - the chunk size is being returned STATUS_BUFFER_TOO_SMALL - the compressed buffer is too small to hold the compressed data.