writePropertyMap method

void writePropertyMap({
  1. required TypeDefIndex parent,
})

Associates a TypeDef with the first property in its property list.

This must be called before writing any Property rows for the given parent.

Implementation

void writePropertyMap({required TypeDefIndex parent}) {
  final firstProperty = PropertyIndex(
    _tableStream[MetadataTableId.property].length,
  );
  _tableStream[MetadataTableId.propertyMap].add(
    PropertyMap(parent: parent, propertyList: firstProperty),
  );
}