public override void WriteTo(FlashWriter output) { output.WriteInt30(NameIndex); output.WriteInt30(Items.Count); for (int i = 0; i < Items.Count; i++) { ASItemInfo item = Items[i]; item.WriteTo(output); } }
public ASMetadata(ABCFile abc, FlashReader input) : this(abc) { NameIndex = input.ReadInt30(); Items.Capacity = input.ReadInt30(); for (int i = 0; i < Items.Capacity; i++) { var itemInfo = new ASItemInfo(abc, input); Items.Add(itemInfo); } }