1 write to StringReferenceIsSmall
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (1)
151
StringReferenceIsSmall
= isCompressed && heapSizes[(int)HeapIndex.String] <= ushort.MaxValue;
26 references to StringReferenceIsSmall
System.Reflection.Metadata (26)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (25)
1880
if (!metadataSizes.
StringReferenceIsSmall
)
1928
writer.WriteReference(SerializeHandle(stringMap, _moduleRow.Value.Name), metadataSizes.
StringReferenceIsSmall
);
1957
writer.WriteReference(SerializeHandle(stringMap, typeRef.Name), metadataSizes.
StringReferenceIsSmall
);
1958
writer.WriteReference(SerializeHandle(stringMap, typeRef.Namespace), metadataSizes.
StringReferenceIsSmall
);
1967
writer.WriteReference(SerializeHandle(stringMap, typeDef.Name), metadataSizes.
StringReferenceIsSmall
);
1968
writer.WriteReference(SerializeHandle(stringMap, typeDef.Namespace), metadataSizes.
StringReferenceIsSmall
);
1980
writer.WriteReference(SerializeHandle(stringMap, fieldDef.Name), metadataSizes.
StringReferenceIsSmall
);
2000
writer.WriteReference(SerializeHandle(stringMap, method.Name), metadataSizes.
StringReferenceIsSmall
);
2012
writer.WriteReference(SerializeHandle(stringMap, param.Name), metadataSizes.
StringReferenceIsSmall
);
2032
writer.WriteReference(SerializeHandle(stringMap, memberRef.Name), metadataSizes.
StringReferenceIsSmall
);
2134
writer.WriteReference(SerializeHandle(stringMap, eventRow.Name), metadataSizes.
StringReferenceIsSmall
);
2153
writer.WriteReference(SerializeHandle(stringMap, property.Name), metadataSizes.
StringReferenceIsSmall
);
2186
writer.WriteReference(SerializeHandle(stringMap, moduleRef.Name), metadataSizes.
StringReferenceIsSmall
);
2204
writer.WriteReference(SerializeHandle(stringMap, implMap.ImportName), metadataSizes.
StringReferenceIsSmall
);
2230
writer.WriteReference(SerializeHandle(stringMap, _assemblyRow.Value.AssemblyName), metadataSizes.
StringReferenceIsSmall
);
2231
writer.WriteReference(SerializeHandle(stringMap, _assemblyRow.Value.AssemblyCulture), metadataSizes.
StringReferenceIsSmall
);
2245
writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.
StringReferenceIsSmall
);
2246
writer.WriteReference(SerializeHandle(stringMap, row.Culture), metadataSizes.
StringReferenceIsSmall
);
2256
writer.WriteReference(SerializeHandle(stringMap, fileReference.FileName), metadataSizes.
StringReferenceIsSmall
);
2267
writer.WriteReference(SerializeHandle(stringMap, exportedType.TypeName), metadataSizes.
StringReferenceIsSmall
);
2268
writer.WriteReference(SerializeHandle(stringMap, exportedType.TypeNamespace), metadataSizes.
StringReferenceIsSmall
);
2279
writer.WriteReference(SerializeHandle(stringMap, manifestResource.Name), metadataSizes.
StringReferenceIsSmall
);
2300
writer.WriteReference(SerializeHandle(stringMap, genericParam.Name), metadataSizes.
StringReferenceIsSmall
);
2361
writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.
StringReferenceIsSmall
);
2369
writer.WriteReference(SerializeHandle(stringMap, row.Name), metadataSizes.
StringReferenceIsSmall
);
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (1)
243
byte stringReferenceSize =
StringReferenceIsSmall
? small : large;