@Override
	public DataType toDataType() throws DuplicateNameException, IOException {
		StructureDataType struct = new StructureDataType(OmfRecordTypes.getName(recordType), 0);
		struct.add(BYTE, "type", null);
		struct.add(WORD, "length", null);
		struct.add(BYTE, "segment_attr", null);
		int A = (segAttr >> 5) & 7;
		if (A == 0) {
			struct.add(WORD, "frame_number", null);
			struct.add(BYTE, "offset", null);
		}
		struct.add(segmentLength.toDataType(), "segment_length", null);
		struct.add(segmentNameIndex.toDataType(), "segment_name_index", null);
		struct.add(classNameIndex.toDataType(), "class_name_index", null);
		struct.add(overlayNameIndex.toDataType(), "overlay_name_index", null);
		struct.add(BYTE, "checksum", null);

		struct.setCategoryPath(new CategoryPath(OmfUtils.CATEGORY_PATH));
		return struct;
	}
Fill the next buffer of bytes being provided by this stream.
@throws IOException for problems with the file image reader
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf/OmfSegmentHeader.java