30 #ifdef __DEVELOPMENT_ASSERTIONS__
42 : dtn::data::DefaultSerializer(stream), _ignore(ignore), _ignore_previous_bundles(ignore != NULL)
53 if (_ignore != NULL) _ignore_previous_bundles =
true;
57 _stream << dtn::data::BUNDLE_VERSION;
60 (*this) << (obj.
procflags & 0x0000000007C1BE);
83 if (_ignore_previous_bundles && (&obj != _ignore))
90 _ignore_previous_bundles =
false;
106 #ifdef __DEVELOPMENT_ASSERTIONS__
112 for (dtn::data::Block::eid_list::const_iterator it = eids.begin(); it != eids.end(); ++it)
125 }
catch (
const std::bad_cast&) {
139 #ifdef __DEVELOPMENT_ASSERTIONS__
164 length +=
static_cast<uint32_t
>(2 *
sdnv_size);
166 length +=
static_cast<uint32_t
>(
sdnv_size);
183 #ifdef __DEVELOPMENT_ASSERTIONS__
189 for (dtn::data::Block::eid_list::const_iterator it = eids.begin(); it != eids.end(); ++it)
190 len += it->getString().size();
200 }
catch (
const std::bad_cast&) {
212 _stream.write(reinterpret_cast<char*>(&be),
sizeof(uint32_t));
218 uint32_t length =
static_cast<uint32_t
>(value.
getString().length());
229 _stream.write(reinterpret_cast<char*>(&be),
sizeof(uint64_t));