public ProtoBuf.SmartBuffer Serialize(ProtoBuf.SmartBuffer buffer) { buffer.In(uid); buffer.In(cmd); buffer.In(index); buffer.In(dataSize); buffer.In(checksum); return(buffer); }
public ProtocolHead Deserialize(ProtoBuf.SmartBuffer buffer) { buffer.Out(out uid); buffer.Out(out cmd); buffer.Out(out index); buffer.Out(out dataSize); buffer.Out(out checksum); return(this); }