MCPcopy Create free account
hub / github.com/cinit/TMoe / ensureCapacity

Method ensureCapacity

app/src/main/cpp/utils/SharedBuffer.h:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 [[nodiscard]] bool ensureCapacity(size_t size, std::nothrow_t) noexcept;
54
55 inline void ensureCapacity(size_t size) {
56 if (size != 0 && !ensureCapacity(size, std::nothrow)) {
57 throw std::bad_alloc();
58 }
59 }
60
61 [[nodiscard]] std::vector<uint8_t> toVector() const;
62

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected