Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string ByteArrayToAscii(byte[] ByteArray, int index, int length, bool clean)
- {
- string R = "";
- byte[] temp = new byte[length];
- Array.Copy(ByteArray, index, temp, 0, temp.Length);
- R = Encoding.ASCII.GetString(temp);
- if (clean) return R.Replace("\0", "");
- return R;
- }
Advertisement
Add Comment
Please, Sign In to add comment