diff options
author | Sven Gothel <[email protected]> | 2015-03-28 01:43:35 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-28 01:43:35 +0100 |
commit | 4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c (patch) | |
tree | cf3671058d55b47ab6cb6f36f369928606137628 /LibOVR/Src/Net/OVR_BitStream.h | |
parent | c29cd1a2fbff6282bab956ad61661ac9d48c4e6e (diff) |
Bump OculusVR RIFT SDK to 0.5.0.1vanilla_0.5.0.1
Diffstat (limited to 'LibOVR/Src/Net/OVR_BitStream.h')
-rw-r--r-- | LibOVR/Src/Net/OVR_BitStream.h | 17 |
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 |