Example #1
0
        protected override void LoadLinks()
        {
            Links = new List <BlobChildLink>();

            SlotCount = (Data.Length - 12) / 12;

            for (var i = 0; i < SlotCount; i++)
            {
                Mark("LinksArray", "Child " + i + " - ", i);

                var length = BitConverter.ToInt32(Data, ChildOffset + (i * 12));

                var rowIdData = new byte[8];
                Array.Copy(Data, ChildOffset + (i * 12) + 4, rowIdData, 0, 8);

                var rowId = new RowIdentifier(rowIdData);

                var link = new BlobChildLink(rowId, 0, length);

                link.Mark("Length", Offset + ChildOffset + (i * 12), sizeof(int));

                link.Mark("RowIdentifier", Offset + ChildOffset + (i * 12) + sizeof(int), 8);

                Links.Add(link);
            }
        }
Example #2
0
        protected override void LoadLinks()
        {
            Links = new List <BlobChildLink>();

            var rowIdData = new byte[8];

            Array.Copy(Data, RowIdOffset, rowIdData, 0, 8);

            Mark("LinksArray", string.Empty, 0);

            var rowId = new RowIdentifier(rowIdData);

            var link = new BlobChildLink(rowId, 0, 0);

            link.Mark("RowIdentifier", Offset + RowIdOffset, 8);

            Links.Add(link);
        }
Example #3
0
        protected override void LoadLinks()
        {
            Links = new List <BlobChildLink>();
            RowIdentifier rowId;

            byte[] rowIdData;

            Length = BitConverter.ToInt32(Data, ChildOffset);

            rowIdData = new byte[8];
            Array.Copy(Data, ChildOffset + 4, rowIdData, 0, 8);

            Mark("LinksArray", string.Empty, 0);

            rowId = new RowIdentifier(rowIdData);

            var link = new BlobChildLink(rowId, Length, 0);

            link.Mark("RowIdentifier", Offset + ChildOffset + 4, 8);

            Links.Add(link);
        }