MCPcopy Create free account
hub / github.com/amule-project/amule / CopyAll

Method CopyAll

src/webserver/src/php_core_lib.cpp:727–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727void CWriteStrBuffer::CopyAll(char *dst_buffer)
728{
729 char *curr_ptr = dst_buffer;
730 int rem_size = m_total_length;
731 for(std::list<char *>::iterator i = m_buf_list.begin(); i != m_buf_list.end(); ++i) {
732 memcpy(curr_ptr, *i, m_alloc_size);
733 rem_size -= m_alloc_size;
734 curr_ptr += m_alloc_size;
735 }
736 if ( rem_size ) {
737 memcpy(curr_ptr, m_curr_buf, rem_size);
738 }
739 *(curr_ptr + rem_size) = 0;
740}
741
742void load_session_vars(const char *target, std::map<std::string, std::string> &varmap)
743{

Callers 2

ProcessPhpRequestMethod · 0.80
mainFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected