MCPcopy Create free account
hub / github.com/NativeScript/android / New

Function New

test-app/runtime/src/main/cpp/v8_inspector/src/base/vector.h:207–210  ·  view source on GitHub ↗

Allocates a new vector of the specified size via the default allocator. Elements in the new vector are value-initialized.

Source from the content-addressed store, hash-verified

205 // Allocates a new vector of the specified size via the default allocator.
206 // Elements in the new vector are value-initialized.
207 static OwnedVector<T> New(size_t size) {
208 if (size == 0) return {};
209 return OwnedVector<T>(std::make_unique<T[]>(size), size);
210 }
211
212 // Allocates a new vector of the specified size via the default allocator.
213 // Elements in the new vector are default-initialized.

Callers 15

WeakMethod · 0.85
TryCallGCMethod · 0.85
PrepareV8RuntimeMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
ConvertFromJavaLongMethod · 0.85
GetExtendMethod · 0.85
GetNullObjectMethod · 0.85

Calls

no outgoing calls

Tested by 3

registerModulesMethod · 0.68