@Override
    public void write(DataWriter out) throws IOException {
        out.writeShort((short) version);
        out.writeUnsignedByte(treeLevel);
        out.writeBoolean(isArray);
        out.writeInt(typeOffset);
        out.writeInt(nameOffset);
        out.writeInt(size);
        out.writeInt(index);
        out.writeInt(metaFlag);
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/main/java/info/ata4/junity/serialize/typetree/TypeV2.java