Stroika Library
3.0d16
Help-Home
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
7
namespace
Stroika::Foundation::Streams::iostream
{
8
9
template
<
typename
T>
10
Memory::BLOB
SerializeItemToBLOB
(
const
T& elt)
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
}
Stroika::Foundation::Memory::BLOB
Definition
BLOB.h:67
Stroika::Foundation::Containers::End
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...
Definition
Foundation/Containers/Common.inl:41
Stroika::Foundation::Containers::Start
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 ...
Definition
Foundation/Containers/Common.inl:23
Stroika::Foundation::Streams::iostream
Definition
CommonInsertersAndExtractors.h:19
Stroika::Foundation::Streams::iostream::SerializeItemToBLOB
Memory::BLOB SerializeItemToBLOB(const T &elt)
Definition
SerializeItemToBLOB.inl:10
Library
Sources
Stroika
Foundation
Streams
iostream
SerializeItemToBLOB.inl
Generated by
1.9.8