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); } }
// Serialize the contents of this message into the writer public virtual void Serialize(JHSNetworkWriter writer) { }
public JHSNetworkReader(JHSNetworkWriter writer) { m_buf = new JHSNetBuffer(writer.AsArray()); Initialize(); }