public static void WriteShort(sizebuf_t sb, Int32 c) { var i = SZ.GetSpace(sb, 2); sb.data[i++] = ( Byte )(c & 0xff); sb.data[i] = ( Byte )((c >> 8) & 0xFF); }
public static void WriteInt(sizebuf_t sb, Int32 c) { var i = SZ.GetSpace(sb, 4); sb.data[i++] = ( Byte )((c & 0xff)); sb.data[i++] = ( Byte )((c >> 8) & 0xff); sb.data[i++] = ( Byte )((c >> 16) & 0xff); sb.data[i++] = ( Byte )((c >> 24) & 0xff); }
public static void WriteChar(sizebuf_t sb, Int32 c) { sb.data[SZ.GetSpace(sb, 1)] = ( Byte )(c & 0xFF); }