# Class: com.pnfsoftware.jeb.core.units.code.asm.memory.VMReader.Buf

Reader object provided by the reader's [read\(\)](VMReader#read(long, INativeType)) method.

## Constructor: Buf
- parameter: `bytes`, type: `byte[]`
- parameter: `baseoff`, type: `int`
- parameter: `t`, type: `com.pnfsoftware.jeb.core.units.code.asm.type.INativeType`
- parameter: `vm`, type: `com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory`

Description: Create a buffer reader.
parameter: bytes: backing bytes
parameter: baseoff: base offset in the backing bytes
parameter: t: native type
parameter: vm: virtual memory object

## Method: getByte
- parameter: `fieldName`, type: `java.lang.String`
- return type: `int`

Description: Read a byte\-sized field.
parameter: fieldName: field name
return: field value

## Method: getByteAt
- parameter: `off`, type: `int`
- return type: `int`

Description: Read a byte at an offset.
parameter: off: offset
return: byte value

## Method: getInt
- parameter: `fieldName`, type: `java.lang.String`
- return type: `int`

Description: Read an int\-sized field.
parameter: fieldName: field name
return: field value

## Method: getIntAt
- parameter: `off`, type: `int`
- return type: `int`

Description: Read an int at an offset.
parameter: off: offset
return: int value

## Method: getLong
- parameter: `fieldName`, type: `java.lang.String`
- return type: `long`

Description: Read a long\-sized field.
parameter: fieldName: field name
return: field value

## Method: getLongAt
- parameter: `off`, type: `int`
- return type: `long`

Description: Read a long at an offset.
parameter: off: offset
return: long value

## Method: getPtr
- parameter: `fieldName`, type: `java.lang.String`
- return type: `long`

Description: Read a pointer\-sized field.
parameter: fieldName: field name
return: pointer value

## Method: getPtrAt
- parameter: `off`, type: `int`
- return type: `long`

Description: Read a pointer at an offset.
parameter: off: offset
return: pointer value

## Method: getShort
- parameter: `fieldName`, type: `java.lang.String`
- return type: `int`

Description: Read a short\-sized field.
parameter: fieldName: field name
return: field value

## Method: getShortAt
- parameter: `off`, type: `int`
- return type: `int`

Description: Read a short at an offset.
parameter: off: offset
return: short value

## Method: readPointedAsciiString
- parameter: `fieldName`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Read a pointed zero\-terminated ASCII string.
parameter: fieldName: pointer field name
return: string, or null

