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 /mp/src/public/tier1/kvpacker.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 'mp/src/public/tier1/kvpacker.h')
| -rw-r--r-- | mp/src/public/tier1/kvpacker.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/mp/src/public/tier1/kvpacker.h b/mp/src/public/tier1/kvpacker.h index 8812ee4e..7e47fa1a 100644 --- a/mp/src/public/tier1/kvpacker.h +++ b/mp/src/public/tier1/kvpacker.h @@ -1,49 +1,49 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef KVPACKER_H
-#define KVPACKER_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "KeyValues.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Handles packing KeyValues binary packing and unpacking in a a
-// consistent way across all branches, including Steam. If you change
-// this packing format you need to do so in a backward compatible way
-// so that the Steam servers and all the various GCs can still talk to
-// each other.
-//-----------------------------------------------------------------------------
-class KVPacker
-{
-public:
- bool WriteAsBinary( KeyValues *pNode, CUtlBuffer &buffer );
- bool ReadAsBinary( KeyValues *pNode, CUtlBuffer &buffer );
-
-private:
- // These types are used for serialization of KeyValues nodes.
- // Do not renumber them or you will break serialization across
- // branches.
- enum EPackType
- {
- PACKTYPE_NONE = 0,
- PACKTYPE_STRING,
- PACKTYPE_INT,
- PACKTYPE_FLOAT,
- PACKTYPE_PTR,
- PACKTYPE_WSTRING,
- PACKTYPE_COLOR,
- PACKTYPE_UINT64,
- PACKTYPE_NULLMARKER, // used to mark the end of a block in the binary format
- };
-};
-
-
-#endif // KVPACKER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef KVPACKER_H +#define KVPACKER_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "KeyValues.h" + +//----------------------------------------------------------------------------- +// Purpose: Handles packing KeyValues binary packing and unpacking in a a +// consistent way across all branches, including Steam. If you change +// this packing format you need to do so in a backward compatible way +// so that the Steam servers and all the various GCs can still talk to +// each other. +//----------------------------------------------------------------------------- +class KVPacker +{ +public: + bool WriteAsBinary( KeyValues *pNode, CUtlBuffer &buffer ); + bool ReadAsBinary( KeyValues *pNode, CUtlBuffer &buffer ); + +private: + // These types are used for serialization of KeyValues nodes. + // Do not renumber them or you will break serialization across + // branches. + enum EPackType + { + PACKTYPE_NONE = 0, + PACKTYPE_STRING, + PACKTYPE_INT, + PACKTYPE_FLOAT, + PACKTYPE_PTR, + PACKTYPE_WSTRING, + PACKTYPE_COLOR, + PACKTYPE_UINT64, + PACKTYPE_NULLMARKER, // used to mark the end of a block in the binary format + }; +}; + + +#endif // KVPACKER_H |