示例#1
0
 /// <summary>
 /// Creates a new ByteString which will contain the representation of the given String in the given charset
 /// </summary>
 /// <param name="str">TBD</param>
 /// <param name="encoding">TBD</param>
 /// <returns>TBD</returns>
 public static ByteString FromString(string str, Encoding encoding)
 {
     return(CompactByteString.FromString(str, encoding));
 }
示例#2
0
 /// <summary>
 /// Creates a new ByteString by copying length bytes starting at offset from
 /// an Array.
 /// </summary>
 /// <param name="array">TBD</param>
 /// <param name="offset">TBD</param>
 /// <param name="length">TBD</param>
 /// <returns>TBD</returns>
 public ByteString FromArray(byte[] array, int offset, int length)
 {
     return(CompactByteString.FromArray(array, offset, length));
 }