示例#1
0
        public void Write(byte[] mqData)
        {
            var pos = PacketHeaderMsgPackStartPos;

            FastBinaryWrite.UInt16(mqData, pos, TotalSize);
            pos += 2;

            FastBinaryWrite.UInt16(mqData, pos, Id);
            pos += 2;

            mqData[pos] = Type;
            pos        += 1;
        }
示例#2
0
 public static void WritePacketId(byte[] data, UInt16 packetId)
 {
     FastBinaryWrite.UInt16(data, PacketHeaderMsgPackStartPos + 2, packetId);
 }