use of info.ata4.disunity.cli.util.TableBuilder in project disunity by ata4.
the class BundleList method buildEntryTable.
private Table<Integer, Integer, Object> buildEntryTable(Bundle bundle) {
TableBuilder table = new TableBuilder();
table.row("Name", "Size", "Offset");
bundle.entryInfos().forEach(entry -> {
table.row(entry.name(), entry.size(), entry.offset());
});
return table.get();
}
use of info.ata4.disunity.cli.util.TableBuilder in project disunity by ata4.
the class AssetHeader method tableModel.
@Override
protected TableModel tableModel(SerializedFile serialized) {
SerializedFileHeader header = serialized.header();
TableBuilder table = new TableBuilder();
table.row("Field", "Value");
table.row("metadataSize", header.metadataSize());
table.row("fileSize", header.fileSize());
table.row("version", header.version());
table.row("dataOffset", header.dataOffset());
if (header.version() >= 9) {
table.row("endianness", header.endianness());
}
return new TableModel("Header", table.get());
}
Aggregations