Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SerializeItemToBLOB.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#include <ostream>
5#include <sstream>
6
8
9 template <typename T>
11 {
12 stringstream out;
13 out << elt;
14 string tmp = out.str ();
15 return Memory::BLOB (
16 vector<byte> (reinterpret_cast<const byte*> (Containers::Start (tmp)), reinterpret_cast<const byte*> (Containers::End (tmp))));
17 }
18
19}
CONTAINER::value_type * End(CONTAINER &c)
For a contiguous container (such as a vector or basic_string) - find the pointer to the end of the co...
CONTAINER::value_type * Start(CONTAINER &c)
For a contiguous container (such as a vector or basic_string) - find the pointer to the start of the ...
Memory::BLOB SerializeItemToBLOB(const T &elt)