/// <summary>Encodes a <paramref name="value"/>, and writes it on /// the <paramref name="output"/> stream.</summary> /// <param name="value">A value to encode.</param> /// <param name="output">A stream that a value is printed on.</param> /// <param name="offloadOptions">Optionally configures how to offload heavy values included /// in lists and dictionaries.</param> /// <exception cref="ArgumentException">Thrown when the given <paramref name="output"/> /// stream is not writable.</exception> public void Encode(IValue value, Stream output, IOffloadOptions?offloadOptions) => Encoder.Encode(value, output, offloadOptions);
public byte[] Encode(IValue value) => Encoder.Encode(value, offloadOptions: null);
public byte[] Encode(IValue value, IOffloadOptions?offloadOptions) => Encoder.Encode(value, offloadOptions);