Bitstream::setBuf.. need explination
by Matthew Shapiro · in Torque Game Engine · 12/14/2002 (11:42 am) · 1 replies
I'm trying to use the BitStream class for the master server, and i'm trying to put the data that torque sends the master server into the bitstream class so I can parse it. The function I found to do this was Bitstream::setBuffer( void *buf, S32 size, S32 maxsize); right now the buffer in the master server is a char [1600] (according to torque's platform/event.h:27 the max packet size for torque is 1500 so we just over engineered a bit). Now my question is in regards to the size nad maxsize variables. What's the difference between these?
--KallDrexx
--KallDrexx
Torque Owner Ryan J. Parker