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

◆ CustomAttributeTableReader()

System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.CustomAttributeTableReader ( int numberOfRows,
bool declaredSorted,
int hasCustomAttributeRefSize,
int customAttributeTypeRefSize,
int blobHeapRefSize,
MemoryBlock containingBlock,
int containingBlockOffset )
inlinepackage

Definition at line 27 of file CustomAttributeTableReader.cs.

28 {
29 NumberOfRows = numberOfRows;
30 _IsHasCustomAttributeRefSizeSmall = hasCustomAttributeRefSize == 2;
31 _IsCustomAttributeTypeRefSizeSmall = customAttributeTypeRefSize == 2;
32 _IsBlobHeapRefSizeSmall = blobHeapRefSize == 2;
33 _ParentOffset = 0;
34 _TypeOffset = _ParentOffset + hasCustomAttributeRefSize;
35 _ValueOffset = _TypeOffset + customAttributeTypeRefSize;
36 RowSize = _ValueOffset + blobHeapRefSize;
37 Block = containingBlock.GetMemoryBlockAt(containingBlockOffset, RowSize * numberOfRows);
38 PtrTable = null;
39 if (!declaredSorted && !CheckSorted())
40 {
42 }
43 }
unsafe MemoryBlock GetMemoryBlockAt(int offset, int length)
int[] BuildPtrTable(int numberOfRows, int rowSize, int referenceOffset, bool isReferenceSmall)

References System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._IsBlobHeapRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._IsCustomAttributeTypeRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._IsHasCustomAttributeRefSizeSmall, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._ParentOffset, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._TypeOffset, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader._ValueOffset, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.Block, System.Reflection.Internal.MemoryBlock.BuildPtrTable(), System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.CheckSorted(), System.Reflection.Internal.MemoryBlock.GetMemoryBlockAt(), System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.NumberOfRows, System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.PtrTable, and System.Reflection.Metadata.Ecma335.CustomAttributeTableReader.RowSize.