MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / append

Method append

dependencies/httplib/httplib.h:2213–2224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2211}
2212
2213inline void stream_line_reader::append(char c) {
2214 if (fixed_buffer_used_size_ < fixed_buffer_size_ - 1) {
2215 fixed_buffer_[fixed_buffer_used_size_++] = c;
2216 fixed_buffer_[fixed_buffer_used_size_] = '\0';
2217 } else {
2218 if (glowable_buffer_.empty()) {
2219 assert(fixed_buffer_[fixed_buffer_used_size_] == '\0');
2220 glowable_buffer_.assign(fixed_buffer_, fixed_buffer_used_size_);
2221 }
2222 glowable_buffer_ += c;
2223 }
2224}
2225
2226inline int close_socket(socket_t sock) {
2227#ifdef _WIN32

Callers 15

setMethod · 0.45
read_outcome_fileFunction · 0.45
add_test_case_lineMethod · 0.45
run_oneMethod · 0.45
collect_logMethod · 0.45
parse_function_argumentsFunction · 0.45
write_dependenciesFunction · 0.45
write_parametersFunction · 0.45
__parseMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by 9

add_test_case_lineMethod · 0.36
run_oneMethod · 0.36
parse_function_argumentsFunction · 0.36
write_dependenciesFunction · 0.36
write_parametersFunction · 0.36
__parseMethod · 0.36
TESTFunction · 0.36