/// <summary> /// Initializes the <see cref="CliMetadataConstantTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// and <paramref name="hasConstantSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataConstantTableReader"/> is.</param> /// <param name="blobHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>.</param> /// <param name="hasConstantSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataHasConstantTag"/> /// encoding.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize hasConstantSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (hasConstantSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = __COR_CONSTANT_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_CONSTANT_CALC_SIZE_2__; } } else if (hasConstantSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = __COR_CONSTANT_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_CONSTANT_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataAssemblyRefTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataAssemblyRefTableReader"/> is. /// </param> /// <param name="blobHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataAssemblyRefTableReader.__COR_ASSEMBLYREF_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataAssemblyRefTableReader.__COR_ASSEMBLYREF_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataAssemblyRefTableReader.__COR_ASSEMBLYREF_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataAssemblyRefTableReader.__COR_ASSEMBLYREF_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataEventMapTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="eventSize"/>, /// and <paramref name="typeDefinitionSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataEventMapTableReader"/> is. /// </param> /// <param name="eventSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataEventTable"/>. /// </param> /// <param name="typeDefinitionSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataTypeDefinitionTable"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize eventSize, CliMetadataReferenceIndexSize typeDefinitionSize) { this.streamOffset = streamOffset; if (eventSize == CliMetadataReferenceIndexSize.DWord) { if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataEventMapTableReader.__COR_EVENTMAP_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataEventMapTableReader.__COR_EVENTMAP_CALC_SIZE_2__; } } else if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataEventMapTableReader.__COR_EVENTMAP_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataEventMapTableReader.__COR_EVENTMAP_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataGenericParameterTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="stringsHeapSize"/>, /// and <paramref name="typeOrMethodDefSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataGenericParameterTableReader"/> is. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> /// <param name="typeOrMethodDefSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataTypeOrMethodDef"/> /// encoding. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize stringsHeapSize, CliMetadataReferenceIndexSize typeOrMethodDefSize) { this.streamOffset = streamOffset; if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { if (typeOrMethodDefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataGenericParameterTableReader.__COR_GENERICPARAMETER_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataGenericParameterTableReader.__COR_GENERICPARAMETER_CALC_SIZE_2__; } } else if (typeOrMethodDefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataGenericParameterTableReader.__COR_GENERICPARAMETER_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataGenericParameterTableReader.__COR_GENERICPARAMETER_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataTypeRefTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="resolutionScopeSize"/>, /// and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataTypeRefTableReader"/> is. /// </param> /// <param name="resolutionScopeSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataResolutionScopeTag"/> /// encoding. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize resolutionScopeSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (resolutionScopeSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataTypeRefTableReader.__COR_TYPEREF_CALC_SIZE_4__; } else { this.state = 1; this.__size = CliMetadataTypeRefTableReader.__COR_TYPEREF_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataTypeRefTableReader.__COR_TYPEREF_CALC_SIZE_3__; } else { this.state = 0; this.__size = CliMetadataTypeRefTableReader.__COR_TYPEREF_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataMethodSemanticsTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="hasSemanticsSize"/>, /// and <paramref name="methodDefinitionSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataMethodSemanticsTableReader"/> is. /// </param> /// <param name="hasSemanticsSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataHasSemanticsTag"/> /// encoding. /// </param> /// <param name="methodDefinitionSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataMethodDefinitionTable"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize hasSemanticsSize, CliMetadataReferenceIndexSize methodDefinitionSize) { this.streamOffset = streamOffset; if (hasSemanticsSize == CliMetadataReferenceIndexSize.DWord) { if (methodDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataMethodSemanticsTableReader.__COR_METHODSEMANTICS_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataMethodSemanticsTableReader.__COR_METHODSEMANTICS_CALC_SIZE_2__; } } else if (methodDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataMethodSemanticsTableReader.__COR_METHODSEMANTICS_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataMethodSemanticsTableReader.__COR_METHODSEMANTICS_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataInterfaceImplTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="typeDefinitionSize"/>, /// and <paramref name="typeDefOrRefSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataInterfaceImplTableReader"/> is. /// </param> /// <param name="typeDefinitionSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataTypeDefinitionTable"/>. /// </param> /// <param name="typeDefOrRefSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataTypeDefOrRefTag"/> /// encoding. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize typeDefinitionSize, CliMetadataReferenceIndexSize typeDefOrRefSize) { this.streamOffset = streamOffset; if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataInterfaceImplTableReader.__COR_INTERFACEIMPL_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataInterfaceImplTableReader.__COR_INTERFACEIMPL_CALC_SIZE_2__; } } else if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataInterfaceImplTableReader.__COR_INTERFACEIMPL_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataInterfaceImplTableReader.__COR_INTERFACEIMPL_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataMethodSpecificationTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// and <paramref name="methodDefOrRefSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataMethodSpecificationTableReader"/> is. /// </param> /// <param name="blobHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>. /// </param> /// <param name="methodDefOrRefSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataMethodDefOrRefTag"/> /// encoding. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize methodDefOrRefSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (methodDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataMethodSpecificationTableReader.__COR_METHODSPECIFICATION_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataMethodSpecificationTableReader.__COR_METHODSPECIFICATION_CALC_SIZE_2__; } } else if (methodDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataMethodSpecificationTableReader.__COR_METHODSPECIFICATION_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataMethodSpecificationTableReader.__COR_METHODSPECIFICATION_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataModuleTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="guidHeapSize"/>, /// and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataModuleTableReader"/> is. /// </param> /// <param name="guidHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataGuidHeaderAndHeap"/>. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize guidHeapSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (guidHeapSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataModuleTableReader.__COR_MODULE_CALC_SIZE_4__; } else { this.state = 1; this.__size = CliMetadataModuleTableReader.__COR_MODULE_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataModuleTableReader.__COR_MODULE_CALC_SIZE_3__; } else { this.state = 0; this.__size = CliMetadataModuleTableReader.__COR_MODULE_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataGenericParamConstraintTableReader"/> with the /// <paramref name="streamOffset"/>,<paramref name="genericParameterSize"/>, and <paramref name="typeDefOrRefSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataGenericParamConstraintTableReader"/> is.</param> /// <param name="genericParameterSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataGenericParameterTable"/>.</param> /// <param name="typeDefOrRefSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataTypeDefOrRefTag"/> /// encoding.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize genericParameterSize, CliMetadataReferenceIndexSize typeDefOrRefSize) { this.streamOffset = streamOffset; if (genericParameterSize == CliMetadataReferenceIndexSize.DWord) { if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = __COR_GENERICPARAMCONSTRAINT_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_GENERICPARAMCONSTRAINT_CALC_SIZE_2__; } } else if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = __COR_GENERICPARAMCONSTRAINT_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_GENERICPARAMCONSTRAINT_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataManifestResourceTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="implementationSize"/>, /// and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataManifestResourceTableReader"/> is. /// </param> /// <param name="implementationSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataImplementationTag"/> /// encoding. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize implementationSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (implementationSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataManifestResourceTableReader.__COR_MANIFESTRESOURCE_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataManifestResourceTableReader.__COR_MANIFESTRESOURCE_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataManifestResourceTableReader.__COR_MANIFESTRESOURCE_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataManifestResourceTableReader.__COR_MANIFESTRESOURCE_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataExportedTypeTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="implementationSize"/>, /// and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataExportedTypeTableReader"/> is.</param> /// <param name="implementationSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataImplementationTag"/> /// encoding.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize implementationSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (implementationSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = __COR_EXPORTEDTYPE_CALC_SIZE_4__; } else { this.state = 1; this.__size = __COR_EXPORTEDTYPE_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = __COR_EXPORTEDTYPE_CALC_SIZE_3__; } else { this.state = 0; this.__size = __COR_EXPORTEDTYPE_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataPropertyMapTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="propertySize"/>, /// and <paramref name="typeDefinitionSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataPropertyMapTableReader"/> is.</param> /// <param name="propertySize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataPropertyTable"/>.</param> /// <param name="typeDefinitionSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataTypeDefinitionTable"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize propertySize, CliMetadataReferenceIndexSize typeDefinitionSize) { this.streamOffset = streamOffset; if (propertySize == CliMetadataReferenceIndexSize.DWord) { if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = __COR_PROPERTYMAP_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_PROPERTYMAP_CALC_SIZE_2__; } } else if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = __COR_PROPERTYMAP_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_PROPERTYMAP_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataFieldMarshalTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// and <paramref name="hasFieldMarshalSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataFieldMarshalTableReader"/> is. /// </param> /// <param name="blobHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>. /// </param> /// <param name="hasFieldMarshalSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataHasFieldMarshalTag"/> /// encoding. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize hasFieldMarshalSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (hasFieldMarshalSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataFieldMarshalTableReader.__COR_FIELDMARSHAL_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataFieldMarshalTableReader.__COR_FIELDMARSHAL_CALC_SIZE_2__; } } else if (hasFieldMarshalSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataFieldMarshalTableReader.__COR_FIELDMARSHAL_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataFieldMarshalTableReader.__COR_FIELDMARSHAL_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataEventTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="stringsHeapSize"/>, /// and <paramref name="typeDefOrRefSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataEventTableReader"/> is.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> /// <param name="typeDefOrRefSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataTypeDefOrRefTag"/> /// encoding.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize stringsHeapSize, CliMetadataReferenceIndexSize typeDefOrRefSize) { this.streamOffset = streamOffset; if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = __COR_EVENT_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_EVENT_CALC_SIZE_2__; } } else if (typeDefOrRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = __COR_EVENT_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_EVENT_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataDeclSecurityTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// and <paramref name="hasDeclSecuritySize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataDeclSecurityTableReader"/> is. /// </param> /// <param name="blobHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>. /// </param> /// <param name="hasDeclSecuritySize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataHasDeclSecurityTag"/> /// encoding. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize hasDeclSecuritySize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (hasDeclSecuritySize == CliMetadataReferenceIndexSize.DWord) { this.state = 3; this.__size = CliMetadataDeclSecurityTableReader.__COR_DECLSECURITY_CALC_SIZE_3__; } else { this.state = 1; this.__size = CliMetadataDeclSecurityTableReader.__COR_DECLSECURITY_CALC_SIZE_2__; } } else if (hasDeclSecuritySize == CliMetadataReferenceIndexSize.DWord) { this.state = 2; this.__size = CliMetadataDeclSecurityTableReader.__COR_DECLSECURITY_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataDeclSecurityTableReader.__COR_DECLSECURITY_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataMemberReferenceTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// <paramref name="memberRefParentSize"/>, and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataMemberReferenceTableReader"/> is.</param> /// <param name="blobHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>.</param> /// <param name="memberRefParentSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataMemberRefParentTag"/> /// encoding.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize memberRefParentSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (memberRefParentSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 7; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_4__; } else { this.state = 3; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_3__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 5; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_2__; } } else if (memberRefParentSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 6; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_3__; } else { this.state = 2; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 4; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_MEMBERREFERENCE_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataImportMapTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="memberForwardedSize"/>, /// <paramref name="moduleReferenceSize"/>, and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataImportMapTableReader"/> is.</param> /// <param name="memberForwardedSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataMemberForwardedTag"/> /// encoding.</param> /// <param name="moduleReferenceSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataModuleReferenceTable"/>.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize memberForwardedSize, CliMetadataReferenceIndexSize moduleReferenceSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (memberForwardedSize == CliMetadataReferenceIndexSize.DWord) { if (moduleReferenceSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 7; this.__size = __COR_IMPORTMAP_CALC_SIZE_4__; } else { this.state = 3; this.__size = __COR_IMPORTMAP_CALC_SIZE_3__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 5; this.__size = __COR_IMPORTMAP_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_IMPORTMAP_CALC_SIZE_2__; } } else if (moduleReferenceSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 6; this.__size = __COR_IMPORTMAP_CALC_SIZE_3__; } else { this.state = 2; this.__size = __COR_IMPORTMAP_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 4; this.__size = __COR_IMPORTMAP_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_IMPORTMAP_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataMethodDefinitionTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// <paramref name="parameterSize"/>, and <paramref name="stringsHeapSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataMethodDefinitionTableReader"/> is.</param> /// <param name="blobHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>.</param> /// <param name="parameterSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataParameterTable"/>.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize parameterSize, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (parameterSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 7; this.__size = __COR_METHODDEFINITION_CALC_SIZE_4__; } else { this.state = 3; this.__size = __COR_METHODDEFINITION_CALC_SIZE_3__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 5; this.__size = __COR_METHODDEFINITION_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_METHODDEFINITION_CALC_SIZE_2__; } } else if (parameterSize == CliMetadataReferenceIndexSize.DWord) { if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 6; this.__size = __COR_METHODDEFINITION_CALC_SIZE_3__; } else { this.state = 2; this.__size = __COR_METHODDEFINITION_CALC_SIZE_2__; } } else if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 4; this.__size = __COR_METHODDEFINITION_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_METHODDEFINITION_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataCustomAttributeTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/>, /// <paramref name="customAttributeTypeSize"/>, and <paramref name="hasCustomAttributeSize"/> provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataCustomAttributeTableReader"/> is.</param> /// <param name="blobHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>.</param> /// <param name="customAttributeTypeSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataCustomAttributeTypeTag"/> /// encoding.</param> /// <param name="hasCustomAttributeSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the indices nwith the <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.CliMetadataHasCustomAttributeTag"/> /// encoding.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize, CliMetadataReferenceIndexSize customAttributeTypeSize, CliMetadataReferenceIndexSize hasCustomAttributeSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { if (customAttributeTypeSize == CliMetadataReferenceIndexSize.DWord) { if (hasCustomAttributeSize == CliMetadataReferenceIndexSize.DWord) { this.state = 7; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_4__; } else { this.state = 3; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_3__; } } else if (hasCustomAttributeSize == CliMetadataReferenceIndexSize.DWord) { this.state = 5; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_3__; } else { this.state = 1; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_2__; } } else if (customAttributeTypeSize == CliMetadataReferenceIndexSize.DWord) { if (hasCustomAttributeSize == CliMetadataReferenceIndexSize.DWord) { this.state = 6; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_3__; } else { this.state = 2; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_2__; } } else if (hasCustomAttributeSize == CliMetadataReferenceIndexSize.DWord) { this.state = 4; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_CUSTOMATTRIBUTE_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataNestedClassTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="typeDefinitionSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataNestedClassTableReader"/> is.</param> /// <param name="typeDefinitionSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataTypeDefinitionTable"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize typeDefinitionSize) { this.streamOffset = streamOffset; if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = __COR_NESTEDCLASS_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_NESTEDCLASS_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataFieldLayoutTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="fieldSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataFieldLayoutTableReader"/> is.</param> /// <param name="fieldSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataFieldTable"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize fieldSize) { this.streamOffset = streamOffset; if (fieldSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = __COR_FIELDLAYOUT_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_FIELDLAYOUT_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataParameterTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="stringsHeapSize"/> /// provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataParameterTableReader"/> is. /// </param> /// <param name="stringsHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = CliMetadataParameterTableReader.__COR_PARAMETER_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataParameterTableReader.__COR_PARAMETER_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataTypeSpecificationTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/> /// provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataTypeSpecificationTableReader"/> is. /// </param> /// <param name="blobHeapSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = CliMetadataTypeSpecificationTableReader.__COR_TYPESPECIFICATION_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataTypeSpecificationTableReader.__COR_TYPESPECIFICATION_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataModuleReferenceTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="stringsHeapSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataModuleReferenceTableReader"/> is.</param> /// <param name="stringsHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataStringsHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize stringsHeapSize) { this.streamOffset = streamOffset; if (stringsHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = __COR_MODULEREFERENCE_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_MODULEREFERENCE_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataClassLayoutTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="typeDefinitionSize"/> /// provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataClassLayoutTableReader"/> is. /// </param> /// <param name="typeDefinitionSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataTypeDefinitionTable"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize typeDefinitionSize) { this.streamOffset = streamOffset; if (typeDefinitionSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = CliMetadataClassLayoutTableReader.__COR_CLASSLAYOUT_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataClassLayoutTableReader.__COR_CLASSLAYOUT_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataAssemblyRefOSTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="assemblyRefSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataAssemblyRefOSTableReader"/> is.</param> /// <param name="assemblyRefSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="ICliMetadataAssemblyRefTable"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize assemblyRefSize) { this.streamOffset = streamOffset; if (assemblyRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = __COR_ASSEMBLYREFOS_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_ASSEMBLYREFOS_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataStandAloneSigTableReader"/> with the <paramref name="streamOffset"/>,<paramref name="blobHeapSize"/> /// provided. /// </summary> /// <param name="streamOffset">The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataStandAloneSigTableReader"/> is.</param> /// <param name="blobHeapSize">The <see cref="CliMetadataReferenceIndexSize"/> used to denote the word size /// of the <see cref="AllenCopeland.Abstraction.Slf._Internal.Cli.Metadata.CliMetadataBlobHeaderAndHeap"/>.</param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize blobHeapSize) { this.streamOffset = streamOffset; if (blobHeapSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = __COR_STANDALONESIG_CALC_SIZE_2__; } else { this.state = 0; this.__size = __COR_STANDALONESIG_CALC_SIZE_1__; } this.length = (this.__size * this.rowCount); }
/// <summary> /// Initializes the <see cref="CliMetadataAssemblyRefProcessorTableReader"/> with the /// <paramref name="streamOffset"/>,<paramref name="assemblyRefSize"/> provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataAssemblyRefProcessorTableReader"/> is. /// </param> /// <param name="assemblyRefSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataAssemblyRefTable"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize assemblyRefSize) { this.streamOffset = streamOffset; if (assemblyRefSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = CliMetadataAssemblyRefProcessorTableReader.__COR_ASSEMBLYREFPROCESSOR_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataAssemblyRefProcessorTableReader.__COR_ASSEMBLYREFPROCESSOR_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }
/// <summary> /// Initializes the <see cref="CliMetadataFieldRVATableReader"/> with the <paramref name="streamOffset"/>,<paramref name="fieldSize"/> /// provided. /// </summary> /// <param name="streamOffset"> /// The <see cref="Int64"/> value which denotes where in the stream of <see cref="reader"/> /// the <see cref="CliMetadataFieldRVATableReader"/> is. /// </param> /// <param name="fieldSize"> /// The <see cref="AllenCopeland.Abstraction.Slf.Cli.Metadata.Tables.CliMetadataReferenceIndexSize"/> /// used to denote the word size of the <see cref="ICliMetadataFieldTable"/>. /// </param> internal void Initialize(long streamOffset, CliMetadataReferenceIndexSize fieldSize) { this.streamOffset = streamOffset; if (fieldSize == CliMetadataReferenceIndexSize.DWord) { this.state = 1; this.__size = CliMetadataFieldRVATableReader.__COR_FIELDRVA_CALC_SIZE_2__; } else { this.state = 0; this.__size = CliMetadataFieldRVATableReader.__COR_FIELDRVA_CALC_SIZE_1__; } this.length = this.__size * this.rowCount; }