示例#1
0
        private JsSchema(JsSchema schema)
        {
            #if SCHEMA_STATISTICS
            _createdSchemas++;
            #endif

            _freeList = schema._freeList;
            _arraySize = schema._arraySize;
        }
示例#2
0
 public FreeEntry(int index, FreeEntry next)
 {
     Index = index;
     Next = next;
 }
示例#3
0
        private void GrowFreeEntries()
        {
            // This increases the array size and pushes free entries onto the
            // list.

            int offset = _arraySize;

            if (_arraySize == 0)
                _arraySize = InitialArraySize;
            else
                _arraySize *= 2;

            for (int i = _arraySize - 1; i >= offset; i--)
            {
                _freeList = new FreeEntry(i, _freeList);
            }
        }