Пример #1
0
void Struct_CP_Table::writeStruct(DataWriter &data) const
{
    data.put16(constants.size(), "size");
    data.pad16();

    foreach (QSharedPointer<Struct_CP> cp, constants)
        data.putAddress(cp, "constant");
}
Пример #2
0
void Struct_Class::writeStruct(DataWriter &data) const
{
    data.putAddress(constantPoolTable, "constantPoolTable");
    data.putAddress(fieldPoolTable, "fieldPoolTable");
    data.putAddress(methodPoolTable, "methodPoolTable");

    data.put16(inheritedStaticDataSize + ownStaticDataSize, "staticDataSize");
    data.put16(inheritedInstanceDataSize + ownInstanceDataSize, "instanceDataSize");
    data.put16(staticDataHandle, "staticDataHandle");
    data.pad16();
}