コード例 #1
0
        public override void Serialize(JHSNetworkWriter writer)
        {
            writer.Write((byte)op);
            if (op == SearchMatchOperations.Search)
            {
                writer.WritePackedUInt32(value);
            }

            if (op == SearchMatchOperations.START)
            {
                writer.Write(IP);
                writer.Write(port);
            }
        }
コード例 #2
0
 // Serialize the contents of this message into the writer
 public virtual void Serialize(JHSNetworkWriter writer)
 {
 }
コード例 #3
0
 public JHSNetworkReader(JHSNetworkWriter writer)
 {
     m_buf = new JHSNetBuffer(writer.AsArray());
     Initialize();
 }