private JsSchema(JsSchema schema) { #if SCHEMA_STATISTICS _createdSchemas++; #endif _freeList = schema._freeList; _arraySize = schema._arraySize; }
public FreeEntry(int index, FreeEntry next) { Index = index; Next = next; }
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); } }