From 39ed87570bdb2f86969d4be821c94b722dc71179 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Wed, 26 Jun 2013 15:22:04 -0700 Subject: First version of the SOurce SDK 2013 --- sp/src/game/server/bitstring.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sp/src/game/server/bitstring.cpp (limited to 'sp/src/game/server/bitstring.cpp') diff --git a/sp/src/game/server/bitstring.cpp b/sp/src/game/server/bitstring.cpp new file mode 100644 index 00000000..fb1cdd43 --- /dev/null +++ b/sp/src/game/server/bitstring.cpp @@ -0,0 +1,27 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Arbitrary length bit string +// ** NOTE: This class does NOT override the bitwise operators +// as doing so would require overriding the operators +// to allocate memory for the returned bitstring. This method +// would be prone to memory leaks as the calling party +// would have to remember to delete the memory. Funtions +// are used instead to require the calling party to allocate +// and destroy their own memory +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//=============================================================================// + +#include "cbase.h" + +#include + +#include "bitstring.h" +#include "utlbuffer.h" +#include "tier0/dbg.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + -- cgit v1.2.3