diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/tier1/lzmaDecoder.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/tier1/lzmaDecoder.h')
| -rw-r--r-- | sp/src/public/tier1/lzmaDecoder.h | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/sp/src/public/tier1/lzmaDecoder.h b/sp/src/public/tier1/lzmaDecoder.h index 8aa1f2ca..51ecfd1a 100644 --- a/sp/src/public/tier1/lzmaDecoder.h +++ b/sp/src/public/tier1/lzmaDecoder.h @@ -1,41 +1,41 @@ -//
-// LZMA Decoder. Designed for run time decoding.
-//
-// LZMA SDK 4.43 Copyright (c) 1999-2006 Igor Pavlov (2006-05-01)
-// http://www.7-zip.org/
-//
-//=====================================================================================//
-
-#ifndef _LZMADECODER_H
-#define _LZMADECODER_H
-#pragma once
-
-#if !defined( _X360 )
-#define LZMA_ID (('A'<<24)|('M'<<16)|('Z'<<8)|('L'))
-#else
-#define LZMA_ID (('L'<<24)|('Z'<<16)|('M'<<8)|('A'))
-#endif
-
-// bind the buffer for correct identification
-#pragma pack(1)
-struct lzma_header_t
-{
- unsigned int id;
- unsigned int actualSize; // always little endian
- unsigned int lzmaSize; // always little endian
- unsigned char properties[5];
-};
-#pragma pack()
-
-class CLZMA
-{
-public:
- unsigned int Uncompress( unsigned char *pInput, unsigned char *pOutput );
- bool IsCompressed( unsigned char *pInput );
- unsigned int GetActualSize( unsigned char *pInput );
-
-private:
-};
-
-#endif
-
+// +// LZMA Decoder. Designed for run time decoding. +// +// LZMA SDK 4.43 Copyright (c) 1999-2006 Igor Pavlov (2006-05-01) +// http://www.7-zip.org/ +// +//=====================================================================================// + +#ifndef _LZMADECODER_H +#define _LZMADECODER_H +#pragma once + +#if !defined( _X360 ) +#define LZMA_ID (('A'<<24)|('M'<<16)|('Z'<<8)|('L')) +#else +#define LZMA_ID (('L'<<24)|('Z'<<16)|('M'<<8)|('A')) +#endif + +// bind the buffer for correct identification +#pragma pack(1) +struct lzma_header_t +{ + unsigned int id; + unsigned int actualSize; // always little endian + unsigned int lzmaSize; // always little endian + unsigned char properties[5]; +}; +#pragma pack() + +class CLZMA +{ +public: + unsigned int Uncompress( unsigned char *pInput, unsigned char *pOutput ); + bool IsCompressed( unsigned char *pInput ); + unsigned int GetActualSize( unsigned char *pInput ); + +private: +}; + +#endif + |