public static void Serialize(Stream stream, GetChannelInfoResponse instance) { if (instance.HasChannelInfo) { stream.WriteByte(10); ProtocolParser.WriteUInt32(stream, instance.ChannelInfo.GetSerializedSize()); ChannelInfo.Serialize(stream, instance.ChannelInfo); } }
public void Serialize(Stream stream) { ChannelInfo.Serialize(stream, this); }