MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / append

Method append

examples/server/httplib.h:2335–2346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2333}
2334
2335inline void stream_line_reader::append(char c) {
2336 if (fixed_buffer_used_size_ < fixed_buffer_size_ - 1) {
2337 fixed_buffer_[fixed_buffer_used_size_++] = c;
2338 fixed_buffer_[fixed_buffer_used_size_] = '\0';
2339 } else {
2340 if (glowable_buffer_.empty()) {
2341 assert(fixed_buffer_[fixed_buffer_used_size_] == '\0');
2342 glowable_buffer_.assign(fixed_buffer_, fixed_buffer_used_size_);
2343 }
2344 glowable_buffer_ += c;
2345 }
2346}
2347
2348inline int close_socket(socket_t sock) {
2349#ifdef _WIN32

Callers 15

_set_vocab_gpt2Method · 0.45
run_with_preset.pyFile · 0.45
bounded_parallel_mapFunction · 0.45
add_meta_vocabMethod · 0.45
find_multifile_pathsFunction · 0.45
load_some_modelFunction · 0.45
mainFunction · 0.45
codepoints_to_utf8Function · 0.45
bounded_parallel_mapFunction · 0.45
add_meta_vocabMethod · 0.45
find_multifile_pathsFunction · 0.45

Calls 2

emptyMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected