internal static byte ReadByte(byte[] buf, ref int bitPos) { byte retval = NetBitWriter.ReadByte(buf, 8, bitPos); bitPos += 8; return(retval); }
internal static bool ReadBoolean(byte[] buf, ref int bitPos) { byte retval = NetBitWriter.ReadByte(buf, 1, bitPos); bitPos++; return(retval > 0); }