| 138 | } |
| 139 | |
| 140 | void unpack(octetStream& os, const T& init = T()) |
| 141 | { |
| 142 | size_t new_size = unpack_size(os); |
| 143 | this->clear(); |
| 144 | for (unsigned int i = 0; i < new_size; i++) |
| 145 | { |
| 146 | this->push_back(init); |
| 147 | this->back().unpack(os); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void add(octetStream& os, T& tmp) |
| 152 | { |