Beispiel #1
0
        internal BlobHandle GetNextHandle(BlobHandle handle)
        {
            if (handle.IsVirtual)
            {
                return(default(BlobHandle));
            }

            int offset, size;

            if (!Block.PeekHeapValueOffsetAndSize(handle.Index, out offset, out size))
            {
                return(default(BlobHandle));
            }

            int nextIndex = offset + size;

            if (nextIndex >= Block.Length)
            {
                return(default(BlobHandle));
            }

            return(BlobHandle.FromIndex((uint)nextIndex));
        }