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

Method overflow

dlib/sockstreambuf/sockstreambuf.cpp:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16// ----------------------------------------------------------------------------------------
17
18 sockstreambuf::int_type sockstreambuf::
19 overflow (
20 int_type c
21 )
22 {
23 if (c != EOF)
24 {
25 *pptr() = c;
26 pbump(1);
27 }
28 if (flush_out_buffer() == EOF)
29 {
30 // an error occurred
31 return EOF;
32 }
33 return c;
34 }
35
36// ----------------------------------------------------------------------------------------
37

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected