MCPcopy Create free account
hub / github.com/apple/foundationdb / resize

Method resize

layers/containers/vector.py:174–176  ·  view source on GitHub ↗

Grow or shrink the size of the Vector.

(self, length, tr=None)

Source from the content-addressed store, hash-verified

172 return self._size(self._to_transaction(tr)) == 0
173
174 def resize(self, length, tr=None):
175 """Grow or shrink the size of the Vector."""
176 self._resize(length, self._to_transaction(tr))
177
178 def clear(self, tr=None):
179 """Remove all items from the Vector."""

Callers 3

vector_testFunction · 0.95
vector_exampleFunction · 0.95
de4514Function · 0.45

Calls 2

_resizeMethod · 0.95
_to_transactionMethod · 0.95

Tested by

no test coverage detected