public HeapOnNodeHeader(byte[] buffer, int offset)
 {
     ibHnpm       = LittleEndianConverter.ToUInt16(buffer, offset + 0);
     bSig         = ByteReader.ReadByte(buffer, offset + 2);
     bClientSig   = (OnHeapTypeName)ByteReader.ReadByte(buffer, offset + 3);
     hidUserRoot  = new HeapID(buffer, offset + 4);
     rgbFillLevel = HeapOnNodeHelper.ReadFillLevelMap(buffer, offset + 8, 8);
 }
Exemple #2
0
 public BTreeOnHeapHeader(byte[] buffer, int offset)
 {
     bType      = (OnHeapTypeName)ByteReader.ReadByte(buffer, offset + 0);
     cbKey      = ByteReader.ReadByte(buffer, offset + 1);
     cbEnt      = ByteReader.ReadByte(buffer, offset + 2);
     bIdxLevels = ByteReader.ReadByte(buffer, offset + 3);
     hidRoot    = new HeapID(buffer, offset + 4);
 }
Exemple #3
0
        public TableContextInfo(byte[] buffer)
        {
            bType = (OnHeapTypeName)ByteReader.ReadByte(buffer, 0);
            byte cCols    = ByteReader.ReadByte(buffer, 1);
            int  position = 2;

            for (int index = 0; index < 4; index++)
            {
                rgib[index] = LittleEndianConverter.ToUInt16(buffer, position);
                position   += 2;
            }
            hidRowIndex = new HeapID(buffer, 10);
            hnidRows    = new HeapOrNodeID(buffer, 14);
            // hidIndex - deprecated
            position = 22;
            for (int index = 0; index < cCols; index++)
            {
                TableColumnDescriptor descriptor = new TableColumnDescriptor(buffer, position);
                rgTCOLDESC.Add(descriptor);
                position += TableColumnDescriptor.Length;
            }
        }
Exemple #4
0
        public HeapID hidRoot;  // This is the HID that points to the BTH root for this BTHHEADER.

        public BTreeOnHeapHeader()
        {
            bType   = OnHeapTypeName.bTypeBTH;
            hidRoot = HeapID.EmptyHeapID; // Set to 0 if the BTH is empty
        }
Exemple #5
0
 public TableContextInfo()
 {
     bType       = OnHeapTypeName.bTypeTC;
     hidRowIndex = HeapID.EmptyHeapID;
     hnidRows    = new HeapOrNodeID(HeapID.EmptyHeapID);
 }