예제 #1
0
 /// <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);
예제 #2
0
 public byte[] Encode(IValue value) => Encoder.Encode(value, offloadOptions: null);
예제 #3
0
 public byte[] Encode(IValue value, IOffloadOptions?offloadOptions) =>
 Encoder.Encode(value, offloadOptions);