Source/NFX/MiscUtils.cs
/// <summary>
/// Decode string with standart UTF8 decoder
/// </summary>
Decode string with standart UTF8 decoder
Decode string with standart UTF8 decoder
public static string FromUTF8Bytes(this byte[] buf, int idx = -1, int cnt = -1)
    {
      if (buf==null) return null;
      return idx >= 0
            ? Encoding.UTF8.GetString(buf, idx, cnt < 0 ? buf.Length - idx : cnt)
            : Encoding.UTF8.GetString(buf);
    }
public static string FromUTF8Bytes ( this byte [ ] buf , int idx = - 1 , int cnt = - 1 ) { if ( buf == null ) return null ; return idx >= 0 ? Encoding . UTF8 . GetString ( buf , idx , cnt < 0 ? buf . Length - idx : cnt ) : Encoding . UTF8 . GetString ( buf ) ; }
Decode string with standart UTF8 decoder
Decode string with standart UTF8 decoder
byte[]
this
idx
int
cnt
int