private <T> StructureContext<T> createStructureContext(Class<T> structureClass,
			DataType containingFieldDataType, BinaryReader reader) throws IllegalArgumentException {
		StructureMappingInfo<T> smi = getStructureMappingInfo(structureClass);
		if (smi == null) {
			throw new IllegalArgumentException(
				"Unknown structure mapped class: " + structureClass.getSimpleName());
		}
		return new StructureContext<>(this, smi, containingFieldDataType, reader);
	}
Creates a new BinaryReader that reads bytes from the current program's memory image.
<p>
Address offsets and index offsets in the BinaryReader should be synonymous.

@return new BinaryReader
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/structmapping/DataTypeMapper.java