public static char[] ToHexBuffer(byte[] buffer) { if (buffer == null) throw new ArgumentNullException("buffer"); return ToHexBuffer(buffer, 0, buffer.Length); } public static char[] ToHexBuffer(byte[] buffer, int offset, int count)