public static Ext4DirEntry read(BinaryReader reader) throws IOException {
		if (reader.getPointerIndex() + SIZEOF_FIXEDFIELDS >= reader.length()) {
			return null;
		}
		Ext4DirEntry result = new Ext4DirEntry();
		result.inode = reader.readNextInt();
		result.rec_len = reader.readNextShort();
		result.name_len = reader.readNextShort();
		result.name = new String(reader.readNextByteArray(result.name_len), StandardCharsets.UTF_8);
		
		int extraSize =
			Short.toUnsignedInt(result.rec_len) - (SIZEOF_FIXEDFIELDS + result.name_len);
		if( extraSize > 0 ) {
			result.extra = reader.readNextByteArray(extraSize);
		}
		return result;
	}
Reads a Ext4DirEntry from the stream.

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