func (p *Process) ReadUint16(a Address) uint16 {
	m := p.findMapping(a)
	if m == nil {
		panic(fmt.Errorf("address %x is not mapped in the core file", a))
	}
	b := m.contents[a.Sub(m.min):]
	if len(b) < 2 {
		var buf [2]byte
		b = buf[:]
		p.ReadAt(b, a)
	}
	if p.littleEndian {
		return binary.LittleEndian.Uint16(b)
	}
	return binary.BigEndian.Uint16(b)
}
func (p *Process) ReadUint16(a Address) uint16 {
	m := p.findMapping(a)
	if m == nil {
		panic(fmt.Errorf("address %x is not mapped in the core file", a))
	}
	b := m.contents[a.Sub(m.min):]
	if len(b) < 2 {
		var buf [2]byte
		b = buf[:]
		p.ReadAt(b, a)
	}
	if p.littleEndian {
		return binary.LittleEndian.Uint16(b)
	}
	return binary.BigEndian.Uint16(b)
}
func ( p * Process ) ReadUint16 ( a Address ) uint16 { m := p . findMapping ( a ) if m == nil { panic ( fmt . Errorf ( " " , a ) ) } b := m . contents [ a . Sub ( m . min ) : ] if len ( b ) < 2 { var buf [ 2 ] byte b = buf [ : ] p . ReadAt ( b , a ) } if p . littleEndian { return binary . LittleEndian . Uint16 ( b ) } return binary . BigEndian . Uint16 ( b ) }
// ReadUint16 returns a uint16 read from address a of the inferior.
ReadUint16 returns a uint16 read from address a of the inferior .