MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / PutN

Function PutN

rapidjson/filewritestream.h:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void PutN(char c, size_t n) {
48 size_t avail = static_cast<size_t>(bufferEnd_ - current_);
49 while (n > avail) {
50 std::memset(current_, c, avail);
51 current_ += avail;
52 Flush();
53 n -= avail;
54 avail = static_cast<size_t>(bufferEnd_ - current_);
55 }
56
57 if (n > 0) {
58 std::memset(current_, c, n);
59 current_ += n;
60 }
61 }
62
63 void Flush() {
64 if (current_ != buffer_) {

Callers

nothing calls this directly

Calls 1

FlushFunction · 0.70

Tested by

no test coverage detected