aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Net/OVR_BitStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibOVR/Src/Net/OVR_BitStream.h')
-rw-r--r--LibOVR/Src/Net/OVR_BitStream.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/LibOVR/Src/Net/OVR_BitStream.h b/LibOVR/Src/Net/OVR_BitStream.h
index b1ddc8f..4e2d2ef 100644
--- a/LibOVR/Src/Net/OVR_BitStream.h
+++ b/LibOVR/Src/Net/OVR_BitStream.h
@@ -29,9 +29,13 @@ limitations under the License.
#define OVR_Bitstream_h
#include <math.h>
-#include "../Kernel/OVR_Types.h"
-#include "../Kernel/OVR_Std.h"
-#include "../Kernel/OVR_String.h"
+#include "Kernel/OVR_Types.h"
+#include "Kernel/OVR_Std.h"
+#include "Kernel/OVR_String.h"
+
+#if defined(OVR_CC_MSVC)
+#pragma warning(push)
+#endif
namespace OVR { namespace Net {
@@ -76,6 +80,9 @@ public:
/// Resets the bitstream for reuse.
void Reset( void );
+ // Releases the current data and points the bitstream at the provided buffer
+ void WrapBuffer(unsigned char* data, const unsigned int lengthInBytes);
+
/// \brief Bidirectional serialize/deserialize any integral type to/from a bitstream.
/// \details Undefine __BITSTREAM_NATIVE_END if you need endian swapping.
/// \param[in] writeToBitstream true to write from your data to this bitstream. False to read from this bitstream and write to your data
@@ -1741,4 +1748,8 @@ BitStream& operator>>(BitStream& in, templateType& c)
}} // OVR::Net
+#if defined(OVR_CC_MSVC)
+#pragma warning(pop)
+#endif
+
#endif