@Override
	public DataType toDataType() throws DuplicateNameException, IOException {
		String nameEnd = rec_len + "_" + (extra == null ? "0" : extra.length );
		Structure structure = new StructureDataType("ext4_dir_entry2_" + nameEnd, 0);
		structure.add(DWORD, "inode", null);
		structure.add(WORD, "rec_len", null);
		structure.add(BYTE, "name_len", null);
		structure.add(BYTE, "file_type", null);
		if ( ( name_len & 0xff ) > 0 ) {
			structure.add(STRING, ( name_len & 0xff ), "name", null);
		}
		if( extra != null ) {
			structure.add( new ArrayDataType(BYTE, extra.length, BYTE.getLength()), "extra", null);
		}
//		if ( structure.getLength() != ( rec_len & 0xffff ) ) {
//			System.out.println( "incorrect size!!" );
//		}
		return structure;
	}
Reads a Ext4DirEntry2 from the stream.

@param reader BinaryReader to read from
@return new Ext4DirEntry2, or null if eof
@throws IOException if error when reading
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ext4/Ext4DirEntry2.java