Skip to content

Commit

Permalink
Add BS_ReadBits, BS_WriteBits
Browse files Browse the repository at this point in the history
  • Loading branch information
katursis committed Aug 29, 2017
1 parent 8383112 commit 23b45f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Pawn.RakNet.inc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@
#define BS_ReadCompressedBool(%0,%1) BS_ReadValue(%0, PR_CBOOL, %1)
#define BS_ReadCompressedString(%0,%1,%2) BS_ReadValue(%0, PR_CSTRING, %1, %2)

#define BS_ReadBits(%0,%1,%2) BS_ReadValue(%0, PR_BITS, %1, %2)

#define BS_WriteInt8(%0,%1) BS_WriteValue(%0, PR_INT8, %1)
#define BS_WriteInt16(%0,%1) BS_WriteValue(%0, PR_INT16, %1)
#define BS_WriteInt32(%0,%1) BS_WriteValue(%0, PR_INT32, %1)
Expand All @@ -285,6 +287,8 @@
#define BS_WriteCompressedBool(%0,%1) BS_WriteValue(%0, PR_CBOOL, %1)
#define BS_WriteCompressedString(%0,%1) BS_WriteValue(%0, PR_CSTRING, %1)

#define BS_WriteBits(%0,%1,%2) BS_WriteValue(%0, PR_BITS, %1, %2)

stock BS_ReadOnFootSync(BitStream:bs, data[PR_OnFootSync])
{
BS_ReadValue(
Expand Down

0 comments on commit 23b45f5

Please sign in to comment.