public byte[] Serialize(object input = null) { using (var packet = new Packet()) { packet.WriteInt32((int)assetType); packet.AppendBytes(assetSpec.Serialize()); return(packet.getData()); } }
public byte[] Serialize(object input = null) { using (var packet = new Packet()) { packet.AppendBytes(propSpec.Serialize()); packet.AppendBytes(loc.Serialize()); return(packet.getData()); } }