MCPcopy Create free account
hub / github.com/davisking/dlib / flush_out_buffer

Method flush_out_buffer

dlib/sockstreambuf/sockstreambuf.h:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 int flush_out_buffer (
114 )
115 {
116 int num = static_cast<int>(pptr()-pbase());
117 if (con.write(out_buffer.get(),num) != num)
118 {
119 // the write was not successful so return EOF
120 return EOF;
121 }
122 pbump(-num);
123 return num;
124 }
125
126 // output functions
127 int_type overflow (

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected