MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / SetInternalCapacity

Method SetInternalCapacity

source/script_object.cpp:2407–2412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2405}
2406
2407bool Object::SetInternalCapacity(index_t new_capacity)
2408// Expands mFields to the specified number if fields.
2409// Caller *must* ensure new_capacity >= 1 && new_capacity >= mFields.Length().
2410{
2411 return mFields.SetCapacity(new_capacity);
2412}
2413
2414bool Map::SetInternalCapacity(index_t new_capacity)
2415// Caller *must* ensure new_capacity >= 1 && new_capacity >= mCount.

Callers 3

CreateMethod · 0.80
CloneToMethod · 0.80
GetOwnPropDescMethod · 0.80

Calls 1

SetCapacityMethod · 0.45

Tested by

no test coverage detected