#ifndef _XFX_NET_PACKETREADER_ #define _XFX_NET_PACKETREADER_ #include using namespace System::IO; namespace XFX { struct Matrix; struct Quaternion; struct Vector2; struct Vector3; struct Vector4; namespace Net { /** * Provides common functionality for efficiently reading incoming network packets. */ class PacketReader : public BinaryReader { public: int Length(); int getPosition(); void setPosition(int newValue); PacketReader(); PacketReader(int capacity); Matrix ReadMatrix(); Quaternion ReadQuaternion(); Vector2 ReadVector2(); Vector3 ReadVector3(); Vector4 ReadVector4(); }; } } #endif //_XFX_NET_PACKETREADER_