Exemplo n.º 1
0
CollectionLinkHeaderItem::CollectionLinkHeaderItem(
    Key k, Context* ctx, const Header& s)
    : Item{k, ctx}
{
    s.Validate(GetUnsafeContext().GetSize());

    data = &GetUnsafeContext().CreateLabelFallback("collection_link", s.offset);
}
Exemplo n.º 2
0
DataItem::DataItem(Key k, Context* ctx, const Header& raw, size_t chunk_size)
    : ItemWithChildren{k, ctx}
{
    raw.Validate(chunk_size);

    type = raw.type;
    offset_unit = raw.offset_unit;
    field_8 = raw.field_8;
}