public void WriteStruct(int fieldIndex, IProtoStruct s) { if (s == null) { return; } var size = s.GetSize(); if (size == 0) { return; } WriteTag(fieldIndex, WireFormat.WireType.Bytes); WriteVarint32((uint)size); s.Marshal(this); }
public void Marshal(IProtoStruct s) { s.Marshal(this); }