MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / reserve_buffer

Method reserve_buffer

lib/asmjit/asmjit/core/codeholder.cpp:489–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489Error CodeHolder::reserve_buffer(CodeBuffer* cb, size_t n) noexcept {
490 size_t capacity = cb->capacity();
491
492 if (n <= capacity) {
493 return Error::kOk;
494 }
495
496 if (cb->is_fixed()) {
497 return make_error(Error::kTooLarge);
498 }
499
500 return CodeHolder_reserve_internal(this, cb, n);
501}
502
503// CodeHolder - Sections
504// =====================

Callers

nothing calls this directly

Calls 4

make_errorFunction · 0.85
capacityMethod · 0.45
is_fixedMethod · 0.45

Tested by

no test coverage detected