mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
71 lines
1.8 KiB
C++
71 lines
1.8 KiB
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS cabinet manager
|
|
* FILE: tools/cabman/raw.cxx
|
|
* PURPOSE: CAB codec for uncompressed "raw" data
|
|
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
|
* Colin Finck <mail@colinfinck.de>
|
|
* REVISIONS:
|
|
* CSH 21/03-2001 Created
|
|
* CSH 15/08-2003 Made it portable
|
|
* CF 04/05-2007 Made it compatible with 64-bit operating systems
|
|
*/
|
|
#include "raw.h"
|
|
|
|
|
|
/* CRawCodec */
|
|
|
|
CRawCodec::CRawCodec()
|
|
/*
|
|
* FUNCTION: Default constructor
|
|
*/
|
|
{
|
|
}
|
|
|
|
|
|
CRawCodec::~CRawCodec()
|
|
/*
|
|
* FUNCTION: Default destructor
|
|
*/
|
|
{
|
|
}
|
|
|
|
|
|
ULONG CRawCodec::Compress(void* OutputBuffer,
|
|
void* InputBuffer,
|
|
ULONG InputLength,
|
|
PULONG OutputLength)
|
|
/*
|
|
* FUNCTION: Compresses data in a buffer
|
|
* ARGUMENTS:
|
|
* OutputBuffer = Pointer to buffer to place compressed data
|
|
* InputBuffer = Pointer to buffer with data to be compressed
|
|
* InputLength = Length of input buffer
|
|
* OutputLength = Address of buffer to place size of compressed data
|
|
*/
|
|
{
|
|
memcpy(OutputBuffer, InputBuffer, InputLength);
|
|
*OutputLength = InputLength;
|
|
return CS_SUCCESS;
|
|
}
|
|
|
|
ULONG CRawCodec::Uncompress(void* OutputBuffer,
|
|
void* InputBuffer,
|
|
ULONG InputLength,
|
|
PULONG OutputLength)
|
|
/*
|
|
* FUNCTION: Uncompresses data in a buffer
|
|
* ARGUMENTS:
|
|
* OutputBuffer = Pointer to buffer to place uncompressed data
|
|
* InputBuffer = Pointer to buffer with data to be uncompressed
|
|
* InputLength = Length of input buffer
|
|
* OutputLength = Address of buffer to place size of uncompressed data
|
|
*/
|
|
{
|
|
memcpy(OutputBuffer, InputBuffer, InputLength);
|
|
*OutputLength = InputLength;
|
|
return CS_SUCCESS;
|
|
}
|
|
|
|
/* EOF */
|