Exemplo n.º 1
0
        public static string ToString(byte[] data, int start, int length)
        {
            var hw = new HexWriter(data)
            {
                Start = start,
                End   = start + length
            };

            return(hw.ToString());
        }
Exemplo n.º 2
0
        public static string ToString(Stream stream, int start, int length)
        {
            byte[] data = new byte[length];
            stream.Position = start;
            stream.Read(data, 0, length);

            var hw = new HexWriter(data)
            {
                Start  = 0,
                End    = length,
                Offset = start
            };

            return(hw.ToString());
        }