Changed NetHandlers bit read/write types to typedefs

This commit is contained in:
Jordan Cristiano
2015-06-18 20:23:26 -04:00
parent 9ad7c54510
commit 778e20803c
34 changed files with 77 additions and 74 deletions

View File

@ -7,7 +7,7 @@
namespace NetHandlers
{
bool SVC_UserMessage_BitRead_Internal(bf_read& bitbuf, SourceGameContext& context, NetMsg::SVC_UserMessage* data)
bool SVC_UserMessage_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::SVC_UserMessage* data)
{
data->msgType = bitbuf.ReadByte();
data->dataLengthInBits = bitbuf.ReadUBitLong(11);
@ -17,7 +17,7 @@ namespace NetHandlers
return !bitbuf.IsOverflowed();
}
bool SVC_UserMessage_BitWrite_Internal(bf_write& bitbuf, const SourceGameContext& context, NetMsg::SVC_UserMessage* data)
bool SVC_UserMessage_BitWrite_Internal(BitWrite& bitbuf, const SourceGameContext& context, NetMsg::SVC_UserMessage* data)
{
bitbuf.WriteByte(data->msgType);
bitbuf.WriteUBitLong(data->dataLengthInBits, 11);