예제 #1
0
파일: HexWriter.cs 프로젝트: aerik/fo-dicom
 public static string ToString(byte[] data, int start, int length)
 {
     HexWriter hw = new HexWriter(data);
     hw.Start = start;
     hw.End = start + length;
     return hw.ToString();
 }
예제 #2
0
        public static string ToString(byte[] data, int start, int length)
        {
            HexWriter hw = new HexWriter(data);

            hw.Start = start;
            hw.End   = start + length;
            return(hw.ToString());
        }
예제 #3
0
		public static string ToString(Stream stream, int start, int length) {
			byte[] data = new byte[length];
			stream.Position = start;
			stream.Read(data, 0, length);

			HexWriter hw = new HexWriter(data);
			hw.Start = 0;
			hw.End = length;
			hw.Offset = start;
			return hw.ToString();
		}
예제 #4
0
        public static string ToString(Stream stream, int start, int length)
        {
            byte[] data = new byte[length];
            stream.Position = start;
            stream.Read(data, 0, length);

            HexWriter hw = new HexWriter(data);

            hw.Start  = 0;
            hw.End    = length;
            hw.Offset = start;
            return(hw.ToString());
        }