29 unsigned sizeToReserve =
m_ostream.str().size();
32 unsigned int sizeToPad =
getPadding(sizeToReserve);
34 if ( sizeToPad != 0 ) {
35 sizeToReserve += sizeToPad;
36 for (
unsigned i = 0 ;
i < sizeToPad;
i++ )
41 char * carray =
new char [sizeToReserve];
42 strncpy(carray,
m_ostream.str().c_str(), sizeToReserve);
45 storage.push_back(strings.size());
46 storage.insert(storage.end(), &uarray[0], &uarray[sizeToReserve/
sizeof(
uint32_t)]);
63 std::vector<std::string>
tmp(1,
str);
68 std::vector<uint32_t>::const_iterator last,
69 std::vector<std::string>& strings)
73 if ( storageSize <= 1 )
return storageSize;
74 unsigned int numOfStrings = *
first;
78 std::vector<uint32_t>::const_iterator itBegin =
first;
80 copy(itBegin, last, &uarray[0]);
91 const char * carray = (
const char*)uarray;
92 std::string whole(carray, (storageSize-1)*
sizeof(
uint32_t));
98 unsigned int readInStrings=0;
101 while (
m_istream.good() && readInStrings < numOfStrings ) {
103 strings.push_back(
one);
105 nChars +=
one.size() + 1;
113 std::vector<uint32_t>::const_iterator last,
116 std::vector<std::string>
tmp;
118 if (
tmp.size() == 1 )
125 if ( storage.size() <= 1 )