public static DataType toOmfRecordDataType(OmfRecord record, String name) {
		StructureDataType struct = new StructureDataType(name, 0);
		struct.add(ByteDataType.dataType, "type", null);
		struct.add(WordDataType.dataType, "length", null);
		struct.add(new ArrayDataType(ByteDataType.dataType, record.getRecordLength() - 1, 1),
			"contents", null);
		struct.add(ByteDataType.dataType, "checksum", null);

		struct.setCategoryPath(new CategoryPath(OmfUtils.CATEGORY_PATH));
		return struct;
	}
Converts the given {@link OmfRecord} to a generic OMF record {@link DataType}

@param record The OMF record to convert
@param name The name of the OMF record
@return A {@link DataType} for the given OMF record
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/OmfUtils.java