101 references to Utilities
AssemblyStripper (101)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\MetadataHeap.cs (1)
84 int start, length = Utilities.ReadCompressedInteger (m_data, (int) pos, out start);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\MetadataRowReader.cs (22)
46 Utilities.TableRowCounter m_counter; 59 m_counter = new Utilities.TableRowCounter (m_mtrv.GetNumberOfRows); 69 return Utilities.GetCodedIndexSize (ci, m_counter, m_ciCache); 148 row.Parent = Utilities.GetMetadataToken (CodedIndex.HasConstant, 154 row.Parent = Utilities.GetMetadataToken (CodedIndex.HasCustomAttribute, 156 row.Type = Utilities.GetMetadataToken (CodedIndex.CustomAttributeType, 163 row.Parent = Utilities.GetMetadataToken (CodedIndex.HasDeclSecurity, 171 row.EventType = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 189 row.Implementation = Utilities.GetMetadataToken (CodedIndex.Implementation, 205 row.Parent = Utilities.GetMetadataToken (CodedIndex.HasFieldMarshal, 228 row.Owner = Utilities.GetMetadataToken (CodedIndex.TypeOrMethodDef, 235 row.Constraint = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 241 row.MemberForwarded = Utilities.GetMetadataToken (CodedIndex.MemberForwarded, 249 row.Interface = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 257 row.Implementation = Utilities.GetMetadataToken (CodedIndex.Implementation, 262 row.Class = Utilities.GetMetadataToken (CodedIndex.MemberRefParent, 279 row.MethodBody = Utilities.GetMetadataToken (CodedIndex.MethodDefOrRef, 281 row.MethodDeclaration = Utilities.GetMetadataToken (CodedIndex.MethodDefOrRef, 292 row.Association = Utilities.GetMetadataToken (CodedIndex.HasSemantics, 297 row.Method = Utilities.GetMetadataToken (CodedIndex.MethodDefOrRef, 352 row.Extends = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 359 row.ResolutionScope = Utilities.GetMetadataToken (CodedIndex.ResolutionScope,
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\MetadataRowWriter.cs (4)
44 Utilities.TableRowCounter m_counter; 56 m_counter = new Utilities.TableRowCounter (GetNumberOfRows); 81 WriteByIndexSize (Utilities.CompressMetadataToken (ci, token), 82 Utilities.GetCodedIndexSize (ci, m_counter, m_ciCache));
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\MetadataWriter.cs (2)
203 Utilities.WriteCompressedInteger (m_blobWriter, data.Length); 230 Utilities.WriteCompressedInteger (m_usWriter, us.Length + 1);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\UserStringsHeap.cs (1)
60 int length = Utilities.ReadCompressedInteger (this.Data, offset, out offset) - 1;
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Signatures\SignatureReader.cs (47)
164 Utilities.ReadCompressedInteger (m_blobData, (int) index, out start); 224 Utilities.ReadCompressedInteger (m_blobData, (int) field.BlobIndex, out start); 234 Utilities.ReadCompressedInteger (m_blobData, (int) property.BlobIndex, out start); 237 property.ParamCount = Utilities.ReadCompressedInteger (m_blobData, start + 1, out start); 246 Utilities.ReadCompressedInteger (m_blobData, (int) localvar.BlobIndex, out start); 249 localvar.Count = Utilities.ReadCompressedInteger (m_blobData, start + 1, out start); 263 methodDef.GenericParameterCount = Utilities.ReadCompressedInteger (data, start, out start); 267 methodDef.ParamCount = Utilities.ReadCompressedInteger (data, start, out start); 292 methodRef.ParamCount = Utilities.ReadCompressedInteger (data, start, out start); 317 int current = Utilities.ReadCompressedInteger (data, start, out start); 336 Utilities.ReadCompressedInteger (data, start, out start); 347 Utilities.ReadCompressedInteger (data, start, out start); 348 if (Utilities.ReadCompressedInteger (data, start, out start) != 0x0a) 360 ElementType flag = (ElementType) Utilities.ReadCompressedInteger (data, start, out start); 413 int flag = Utilities.ReadCompressedInteger (data, start, out start); 433 ElementType flag = (ElementType) Utilities.ReadCompressedInteger (data, start, out start); 460 ElementType element = (ElementType) Utilities.ReadCompressedInteger (data, start, out start); 464 vt.Type = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 465 (uint) Utilities.ReadCompressedInteger (data, start, out start)); 469 c.Type = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 470 (uint) Utilities.ReadCompressedInteger (data, start, out start)); 475 int flag = Utilities.ReadCompressedInteger (data, start, out start); 500 shape.Rank = Utilities.ReadCompressedInteger (data, start, out start); 501 shape.NumSizes = Utilities.ReadCompressedInteger (data, start, out start); 504 shape.Sizes [i] = Utilities.ReadCompressedInteger (data, start, out start); 505 shape.NumLoBounds = Utilities.ReadCompressedInteger (data, start, out start); 508 shape.LoBounds [i] = Utilities.ReadCompressedInteger (data, start, out start); 517 return new VAR (Utilities.ReadCompressedInteger (data, start, out start)); 519 return new MVAR (Utilities.ReadCompressedInteger (data, start, out start)); 523 ginst.ValueType = ((ElementType) Utilities.ReadCompressedInteger ( 526 ginst.Type = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 527 (uint) Utilities.ReadCompressedInteger (data, start, out start)); 541 gis.Arity = Utilities.ReadCompressedInteger (data, start, out start); 567 ElementType flag = (ElementType) Utilities.ReadCompressedInteger (data, start, out start); 585 ElementType cmod = (ElementType) Utilities.ReadCompressedInteger (data, start, out start); 592 cm.TypeDefOrRef = Utilities.GetMetadataToken (CodedIndex.TypeDefOrRef, 593 (uint) Utilities.ReadCompressedInteger (data, start, out start)); 599 int start, length = Utilities.ReadCompressedInteger (m_blobData, pos, out start); 934 ar.ArrayElemType = (NativeType) Utilities.ReadCompressedInteger (data, start, out start); 936 ar.ParamNum = Utilities.ReadCompressedInteger (data, start, out start); 938 ar.NumElem = Utilities.ReadCompressedInteger (data, start, out start); 940 ar.ElemMult = Utilities.ReadCompressedInteger (data, start, out start); 953 fa.NumElem = Utilities.ReadCompressedInteger (data, start, out start); 955 fa.ArrayElemType = (NativeType) Utilities.ReadCompressedInteger (data, start, out start); 961 sa.ArrayElemType = (VariantType) Utilities.ReadCompressedInteger (data, start, out start); 967 fss.Size = Utilities.ReadCompressedInteger (data, start, out start); 984 int length = Utilities.ReadCompressedInteger (data, pos, out start);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Signatures\SignatureWriter.cs (5)
238 Write ((int) Utilities.CompressMetadataToken ( 242 Write ((int) Utilities.CompressMetadataToken ( 288 Write ((int) Utilities.CompressMetadataToken ( 349 Write ((int) Utilities.CompressMetadataToken ( 561 Utilities.WriteCompressedInteger (m_sigWriter, i);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil\SecurityDeclarationReader.cs (3)
84 int numattr = Utilities.ReadCompressedInteger (declaration, pos, out start); 144 Utilities.ReadCompressedInteger (permset, start, out pos); 145 int numparams = Utilities.ReadCompressedInteger (permset, pos, out start);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24312.1\contentFiles\cs\netstandard2.0\Mono.Cecil\TableComparers.cs (14)
105 Utilities.CompressMetadataToken (CodedIndex.HasConstant, a.Parent), 106 Utilities.CompressMetadataToken (CodedIndex.HasConstant, b.Parent)); 124 Utilities.CompressMetadataToken (CodedIndex.TypeDefOrRef, a.Interface), 125 Utilities.CompressMetadataToken (CodedIndex.TypeDefOrRef, b.Interface)); 141 Utilities.CompressMetadataToken (CodedIndex.HasSemantics, a.Association), 142 Utilities.CompressMetadataToken (CodedIndex.HasSemantics, b.Association)); 156 Utilities.CompressMetadataToken (CodedIndex.HasCustomAttribute, a.Parent), 157 Utilities.CompressMetadataToken (CodedIndex.HasCustomAttribute, b.Parent)); 171 Utilities.CompressMetadataToken (CodedIndex.HasDeclSecurity, a.Parent), 172 Utilities.CompressMetadataToken (CodedIndex.HasDeclSecurity, b.Parent)); 238 Utilities.CompressMetadataToken (CodedIndex.HasFieldMarshal, a.Parent), 239 Utilities.CompressMetadataToken (CodedIndex.HasFieldMarshal, b.Parent)); 266 Utilities.CompressMetadataToken (CodedIndex.TypeOrMethodDef, a.Owner.MetadataToken), 267 Utilities.CompressMetadataToken (CodedIndex.TypeOrMethodDef, b.Owner.MetadataToken));
AssemblyStripper.cs (2)
21var leftParentCodedIdx = Utilities.CompressMetadataToken(CodedIndex.HasCustomAttribute, row_left.Parent); 22var rightParentCodedIdx = Utilities.CompressMetadataToken(CodedIndex.HasCustomAttribute, row_right.Parent);