ReactOS 0.4.15-dev-7958-gcd0bb1a
CRawCodec Class Reference

#include <raw.h>

Inheritance diagram for CRawCodec:
Collaboration diagram for CRawCodec:

Public Member Functions

 CRawCodec ()
 
virtual ~CRawCodec ()
 
virtual ULONG Compress (void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
 
virtual ULONG Uncompress (void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
 
- Public Member Functions inherited from CCABCodec
 CCABCodec ()
 
virtual ~CCABCodec ()
 
virtual ULONG Compress (void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength)=0
 
virtual ULONG Uncompress (void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength)=0
 

Detailed Description

Definition at line 15 of file raw.h.

Constructor & Destructor Documentation

◆ CRawCodec()

CRawCodec::CRawCodec ( )

Definition at line 18 of file raw.cxx.

22{
23}

◆ ~CRawCodec()

CRawCodec::~CRawCodec ( )
virtual

Definition at line 26 of file raw.cxx.

30{
31}

Member Function Documentation

◆ Compress()

ULONG CRawCodec::Compress ( void OutputBuffer,
void InputBuffer,
ULONG  InputLength,
PULONG  OutputLength 
)
overridevirtual

Implements CCABCodec.

Definition at line 34 of file raw.cxx.

46{
47 memcpy(OutputBuffer, InputBuffer, InputLength);
48 *OutputLength = InputLength;
49 return CS_SUCCESS;
50}
#define CS_SUCCESS
Definition: cabinet.h:41
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953

◆ Uncompress()

ULONG CRawCodec::Uncompress ( void OutputBuffer,
void InputBuffer,
ULONG  InputLength,
PULONG  OutputLength 
)
overridevirtual

Implements CCABCodec.

Definition at line 52 of file raw.cxx.

64{
65 memcpy(OutputBuffer, InputBuffer, InputLength);
66 *OutputLength = InputLength;
67 return CS_SUCCESS;
68}

The documentation for this class was generated from the following files: