MCPcopy Create free account
hub / github.com/bytedance/bolt / writePosition

Method writePosition

bolt/common/memory/ByteStream.cpp:330–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330char* ByteOutputStream::writePosition() {
331 if (ranges_.empty()) {
332 return nullptr;
333 }
334 return reinterpret_cast<char*>(current_->buffer) + current_->position;
335}
336
337void ByteOutputStream::extend(int32_t bytes) {
338 if (current_ && current_->position != current_->size) {

Callers 2

appendMethod · 0.80
finishWriteMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected