MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / append

Method append

extern/include/cpp-httplib/httplib.h:2266–2277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2264}
2265
2266inline void stream_line_reader::append(char c) {
2267 if (fixed_buffer_used_size_ < fixed_buffer_size_ - 1) {
2268 fixed_buffer_[fixed_buffer_used_size_++] = c;
2269 fixed_buffer_[fixed_buffer_used_size_] = '\0';
2270 } else {
2271 if (glowable_buffer_.empty()) {
2272 assert(fixed_buffer_[fixed_buffer_used_size_] == '\0');
2273 glowable_buffer_.assign(fixed_buffer_, fixed_buffer_used_size_);
2274 }
2275 glowable_buffer_ += c;
2276 }
2277}
2278
2279inline int close_socket(socket_t sock) {
2280#ifdef _WIN32

Callers 15

pushMethod · 0.45
add_menu_itemMethod · 0.45
insert_menu_itemMethod · 0.45
viewport_namesMethod · 0.45
selected_containersMethod · 0.45
merge_playlistMethod · 0.45
copy_containers_toMethod · 0.45
quickview_mediaMethod · 0.45
streamsMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected