// Hint for callers using ArrayBufferWriter<byte> - output.WrittenSpan contains the serialised data public void Serialize <T>(IBufferWriter <byte> output, CryptoDtoChannelStore channelStore, string channelTag, CryptoDtoMode mode, T obj) { var channel = channelStore.GetChannel(channelTag); Serialize(output, channel, mode, obj); }
public byte[] Serialize <T>(CryptoDtoChannelStore channelStore, string channelTag, CryptoDtoMode mode, T obj) { var channel = channelStore.GetChannel(channelTag); return(Serialize(channel, mode, obj)); }