24 unsigned sizeToReserve =
m_ostream.str().size();
27 unsigned int sizeToPad =
getPadding(sizeToReserve);
29 if ( sizeToPad != 0 ) {
30 sizeToReserve += sizeToPad;
31 for (
unsigned i = 0 ;
i < sizeToPad;
i++ )
36 char * carray =
new char [sizeToReserve];
37 strncpy(carray,
m_ostream.str().c_str(), sizeToReserve);
40 storage.push_back(strings.size());
41 storage.insert(storage.end(), &uarray[0], &uarray[sizeToReserve/
sizeof(
uint32_t)]);
58 std::vector<std::string>
tmp(1,
str);
63 std::vector<uint32_t>::const_iterator last,
64 std::vector<std::string>& strings)
68 if ( storageSize <= 1 )
return storageSize;
69 unsigned int numOfStrings = *
first;
73 std::vector<uint32_t>::const_iterator itBegin =
first;
75 copy(itBegin, last, &uarray[0]);
86 const char * carray = (
const char*)uarray;
87 std::string whole(carray, (storageSize-1)*
sizeof(
uint32_t));
93 unsigned int readInStrings=0;
96 while (
m_istream.good() && readInStrings < numOfStrings ) {
98 strings.push_back(
one);
100 nChars +=
one.size() + 1;
108 std::vector<uint32_t>::const_iterator last,
111 std::vector<std::string>
tmp;
113 if (
tmp.size() == 1 )
120 if ( storage.size() <= 1 )