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.
-
Method Summary
Modifier and TypeMethodDescriptionget
(BinaryReader reader) Reads from the specifiedBinaryReader
and returns a new object instance.
-
Method Details
-
get
Reads from the specifiedBinaryReader
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
-