Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SerializeCustomAttributeTable()

void System.Reflection.Metadata.Ecma335.MetadataBuilder.SerializeCustomAttributeTable ( BlobBuilder writer,
MetadataSizes metadataSizes )
inlineprivate

Definition at line 2011 of file MetadataBuilder.cs.

2012 {
2015 {
2018 }
2019 else
2020 {
2021 enumerable = _customAttributeTable.OrderBy((CustomAttributeRow x, CustomAttributeRow y) => x.Parent - y.Parent);
2022 }
2024 foreach (CustomAttributeRow item in enumerable2)
2025 {
2026 writer.WriteReference(item.Parent, metadataSizes.HasCustomAttributeCodedIndexIsSmall);
2027 writer.WriteReference(item.Type, metadataSizes.CustomAttributeTypeCodedIndexIsSmall);
2028 writer.WriteReference(SerializeHandle(item.Value), metadataSizes.BlobReferenceIsSmall);
2029 }
2030 }
int SerializeHandle(ImmutableArray< int > map, StringHandle handle)
readonly List< CustomAttributeRow > _customAttributeTable

References System.Reflection.Metadata.Ecma335.MetadataBuilder._customAttributeTable, System.Reflection.Metadata.Ecma335.MetadataBuilder._customAttributeTableNeedsSorting, System.item, System.Reflection.Metadata.Ecma335.MetadataBuilder.CustomAttributeRow.Parent, System.Reflection.Metadata.Ecma335.MetadataBuilder.SerializeHandle(), and System.writer.

Referenced by System.Reflection.Metadata.Ecma335.MetadataBuilder.SerializeMetadataTables().