Package ghidra.app.util.bin

# Interface BinaryReader.ReaderFunction<T>

Type Parameters:
  `T` - the type of object that will be returned

Enclosing class:
  `BinaryReader`

public static interface BinaryReader.ReaderFunction<T>
Reads and returns an object from the current position in the specified BinaryReader.

When reading from the BinaryReader, use "readNext" methods to consume the location where the object was located.

See `get(BinaryReader)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `get(BinaryReader reader)`
  Reads from the specified `BinaryReader` and returns a new object instance.

- ## Method Details

  - ### get

    T get(BinaryReader reader) throws IOException
    Reads from the specified `BinaryReader` and returns a new object instance.

    When reading from the BinaryReader, use "readNext" methods to consume the location where the object was located.

    Implementations of this method should not return `null`, instead they should throw an IOException.

    Parameters:
      `reader` - `BinaryReader`
    Returns:
      new object
    Throws:
      `IOException` - if error reading