template<template< typename, typename > class S>
struct fpmas::io::datapack::Serializer< BasicObjectPack< S > >
Serializer specialization that allows nested BasicObjectPack serialization.
| Serialization Scheme |
| pack.data().size | pack.data().buffer |
template<template< typename, typename > class S>
template<typename PackType >
Returns the buffer size required to serialize a child data pack into any PackType.
Only sizeof(std::size_t) bytes are first allocated, since child might be expanded (with child.expand(N)) during the serialization process between this size() call and the to_datapack() call.
In consequence, the actual child size is considered at the actual to_datapack() call and the parent pack is expanded accordingly.