/// <summary>Converts Big Endian encoded data to decoded string.</summary> /// <param name="data">Encoded data</param> /// <param name="offset">Offset to read from</param> /// <param name="count">Length of data to read.</param> /// <returns>Decoded string.</returns> public static string GetBEString3(byte[] data, int offset, int count) { var raw = Encoding.BigEndianUnicode.GetString(data, offset, count); var sb = new StringBuilder(raw); Util.TrimFromFirst(sb, TerminatorBigEndian); return(sb.ToString()); }