MCPcopy Create free account
hub / github.com/ablab/spades / grow_buffer

Method grow_buffer

ext/include/cppformat/format.h:1455–1459  ·  view source on GitHub ↗

Grows the buffer by n characters and returns a pointer to the newly allocated area.

Source from the content-addressed store, hash-verified

1453 // Grows the buffer by n characters and returns a pointer to the newly
1454 // allocated area.
1455 CharPtr grow_buffer(std::size_t n) {
1456 std::size_t size = buffer_.size();
1457 buffer_.resize(size + n);
1458 return internal::make_ptr(&buffer_[size], n);
1459 }
1460
1461 // Prepare a buffer for integer formatting.
1462 CharPtr prepare_int_buffer(unsigned num_digits,

Callers 2

visit_charMethod · 0.80
formatMethod · 0.80

Calls 3

make_ptrFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected