2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS cabinet manager
4 * FILE: apps/cabman/raw.cpp
5 * PURPOSE: CAB codec for uncompressed "raw" data
6 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
8 * CSH 21/03-2001 Created
16 CRawCodec::CRawCodec()
18 * FUNCTION: Default constructor
24 CRawCodec::~CRawCodec()
26 * FUNCTION: Default destructor
32 ULONG CRawCodec::Compress(PVOID OutputBuffer,
37 * FUNCTION: Compresses data in a buffer
39 * OutputBuffer = Pointer to buffer to place compressed data
40 * InputBuffer = Pointer to buffer with data to be compressed
41 * InputLength = Length of input buffer
42 * OutputLength = Address of buffer to place size of compressed data
45 CopyMemory(OutputBuffer, InputBuffer, InputLength);
46 *OutputLength = InputLength;
51 ULONG CRawCodec::Uncompress(PVOID OutputBuffer,
56 * FUNCTION: Uncompresses data in a buffer
58 * OutputBuffer = Pointer to buffer to place uncompressed data
59 * InputBuffer = Pointer to buffer with data to be uncompressed
60 * InputLength = Length of input buffer
61 * OutputLength = Address of buffer to place size of uncompressed data
64 CopyMemory(OutputBuffer, InputBuffer, InputLength);
65 *OutputLength = InputLength;