Esempio n. 1
0
 /// <summary>
 /// Write a string to <see cref="Stream"/> <paramref name="s"/> using <see cref="Encoding.BigEndianUnicode"/>.
 /// </summary>
 /// <param name="s"><see cref="Stream"/> to which to write string.</param>
 /// <param name="value">The <see cref="String"/> to write.</param>
 public static void Write(Stream s, string value)
 {
     SevenBitString.Write(s, Encoding.BigEndianUnicode, value);
 }
Esempio n. 2
0
 /// <summary>
 /// Read a string from <see cref="Stream"/> <paramref name="s"/> using <see cref="Encoding.BigEndianUnicode"/>.
 /// </summary>
 /// <param name="s"><see cref="Stream"/> from which to read string.</param>
 /// <returns>A <see cref="String"/> value.</returns>
 public static string Read(Stream s)
 {
     return(SevenBitString.Read(s, Encoding.BigEndianUnicode));
 }