MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / BufferWriter

Method BufferWriter

src/writer.cpp:85–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85BufferWriter::BufferWriter(size_t capacity) : _size(0), _capacity(capacity) {
86 _buf = (char*)malloc(capacity);
87}
88
89BufferWriter::~BufferWriter() {
90 free(_buf);

Callers

nothing calls this directly

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected