public <T> T readNext(InputStreamReaderFunction<T> func) throws IOException {
		T obj = func.get(getInputStream());
		return obj;
	}
Reads an object from the current position, using the supplied reader function.

@param <T> type of the object that will be returned
@param func {@link InputStreamReaderFunction} that will read and return an object
@return new object of type T
@throws IOException if error reading
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java