Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenraw.cxx
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS cabinet manager 00004 * FILE: tools/cabman/raw.cpp 00005 * PURPOSE: CAB codec for uncompressed "raw" data 00006 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net) 00007 * Colin Finck <mail@colinfinck.de> 00008 * REVISIONS: 00009 * CSH 21/03-2001 Created 00010 * CSH 15/08-2003 Made it portable 00011 * CF 04/05-2007 Made it compatible with 64-bit operating systems 00012 */ 00013 #include "raw.h" 00014 00015 00016 /* CRawCodec */ 00017 00018 CRawCodec::CRawCodec() 00019 /* 00020 * FUNCTION: Default constructor 00021 */ 00022 { 00023 } 00024 00025 00026 CRawCodec::~CRawCodec() 00027 /* 00028 * FUNCTION: Default destructor 00029 */ 00030 { 00031 } 00032 00033 00034 ULONG CRawCodec::Compress(void* OutputBuffer, 00035 void* InputBuffer, 00036 ULONG InputLength, 00037 PULONG OutputLength) 00038 /* 00039 * FUNCTION: Compresses data in a buffer 00040 * ARGUMENTS: 00041 * OutputBuffer = Pointer to buffer to place compressed data 00042 * InputBuffer = Pointer to buffer with data to be compressed 00043 * InputLength = Length of input buffer 00044 * OutputLength = Address of buffer to place size of compressed data 00045 */ 00046 { 00047 memcpy(OutputBuffer, InputBuffer, InputLength); 00048 *OutputLength = InputLength; 00049 return CS_SUCCESS; 00050 } 00051 00052 ULONG CRawCodec::Uncompress(void* OutputBuffer, 00053 void* InputBuffer, 00054 ULONG InputLength, 00055 PULONG OutputLength) 00056 /* 00057 * FUNCTION: Uncompresses data in a buffer 00058 * ARGUMENTS: 00059 * OutputBuffer = Pointer to buffer to place uncompressed data 00060 * InputBuffer = Pointer to buffer with data to be uncompressed 00061 * InputLength = Length of input buffer 00062 * OutputLength = Address of buffer to place size of uncompressed data 00063 */ 00064 { 00065 memcpy(OutputBuffer, InputBuffer, InputLength); 00066 *OutputLength = InputLength; 00067 return CS_SUCCESS; 00068 } 00069 00070 /* EOF */ Generated on Fri May 25 2012 04:36:08 for ReactOS by
1.7.6.1
|