ReadUInt32() public abstract method

Reads a uint
public abstract ReadUInt32 ( HexPosition position ) : uint
position HexPosition Position
return uint
コード例 #1
0
ファイル: HexField.cs プロジェクト: 0xd4d/dnSpy
		public UInt32FlagsHexField(HexBuffer buffer, string parentName, string name, HexPosition start)
			: base(buffer, parentName, name, start, 4) {
			data = new UInt32VM(buffer.ReadUInt32(start), a => UpdateValue(), false);
		}
コード例 #2
0
		uint ReadFieldValue(HexBuffer buffer, ColumnInfo col) {
			var start = Span.Start + (ulong)col.Offset;
			if (col.Size == 2)
				return buffer.ReadUInt16(start);
			else if (col.Size == 4)
				return buffer.ReadUInt32(start);
			throw new InvalidOperationException();
		}
コード例 #3
0
ファイル: HexField.cs プロジェクト: 0xd4d/dnSpy
		public UInt32HexField(HexBuffer buffer, string parentName, string name, HexPosition start, bool useDecimal = false)
			: base(buffer, parentName, name, start, 4) {
			data = new UInt32VM(buffer.ReadUInt32(start), a => UpdateValue(), useDecimal);
		}