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

Method mystreambuf

dlib/vectorstream/unserialize.h:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26 template <typename T>
27 mystreambuf(
28 const T& item,
29 std::istream& str_
30 ) :
31 read_pos(0),
32 str(str_)
33 {
34 // put the item into our buffer.
35 vectorstream vstr(buffer);
36 serialize(item, vstr);
37 }
38
39
40 // ------------------------ INPUT FUNCTIONS ------------------------

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.50

Tested by

no test coverage detected