ReadUInt16() 공개 추상적인 메소드

Reads a ushort
public abstract ReadUInt16 ( HexPosition position ) : ushort
position HexPosition Position
리턴 ushort
예제 #1
0
파일: HexField.cs 프로젝트: 0xd4d/dnSpy
		public UInt16FlagsHexField(HexBuffer buffer, string parentName, string name, HexPosition start)
			: base(buffer, parentName, name, start, 2) {
			data = new UInt16VM(buffer.ReadUInt16(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 UInt16HexField(HexBuffer buffer, string parentName, string name, HexPosition start, bool useDecimal = false)
			: base(buffer, parentName, name, start, 2) {
			data = new UInt16VM(buffer.ReadUInt16(start), a => UpdateValue(), useDecimal);
		}