mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:13:03 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
70
sdk/tools/cabman/raw.cxx
Normal file
70
sdk/tools/cabman/raw.cxx
Normal file
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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 */
|
Loading…
Add table
Add a link
Reference in a new issue