コード例 #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
ファイル: HexWriter.cs プロジェクト: ZeryZhang/fo-dicom
		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());
        }