Esempio n. 1
0
 /// <summary>
 /// Returns the output JSON data as a UTF8-encoded byte array.
 /// </summary>
 /// <remarks>
 /// This is defined separately from <see cref="GetString"/> because on some platforms it is
 /// possible to implement this method more efficiently than <c>Encoding.UTF8.GetBytes(GetString())</c>.
 /// </remarks>
 /// <returns>a UTF8-encoded byte array</returns>
 public byte[] GetUtf8Bytes() =>
 _tw.GetUtf8Bytes();