:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / apps / utils / cabman / raw.cpp
1 /*
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)
7  * REVISIONS:
8  *   CSH 21/03-2001 Created
9  */
10 #include <windows.h>
11 #include "raw.h"
12
13
14 /* CRawCodec */
15
16 CRawCodec::CRawCodec()
17 /*
18  * FUNCTION: Default constructor
19  */
20 {
21 }
22
23
24 CRawCodec::~CRawCodec()
25 /*
26  * FUNCTION: Default destructor
27  */
28 {
29 }
30
31
32 ULONG CRawCodec::Compress(PVOID OutputBuffer,
33                           PVOID InputBuffer,
34                           DWORD InputLength,
35                           PDWORD OutputLength)
36 /*
37  * FUNCTION: Compresses data in a buffer
38  * ARGUMENTS:
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
43  */
44 {
45     CopyMemory(OutputBuffer, InputBuffer, InputLength);
46     *OutputLength = InputLength;
47     return CS_SUCCESS;
48 }
49
50
51 ULONG CRawCodec::Uncompress(PVOID OutputBuffer,
52                             PVOID InputBuffer,
53                             DWORD InputLength,
54                             PDWORD OutputLength)
55 /*
56  * FUNCTION: Uncompresses data in a buffer
57  * ARGUMENTS:
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
62  */
63 {
64     CopyMemory(OutputBuffer, InputBuffer, InputLength);
65     *OutputLength = InputLength;
66     return CS_SUCCESS;
67 }
68
69 /* EOF */