| 319 | */ |
| 320 | template <class Derived, class Container, bool IsMutable> |
| 321 | inline |
| 322 | void |
| 323 | DynamicStruct<Derived, Container, IsMutable>::bindToStream( |
| 324 | typename DynamicStruct<Derived, Container, IsMutable>::ByteStream_type& |
| 325 | inStream) { |
| 326 | |
| 327 | inStream.template seek<ByteStream_type::maximumAlignment>(0, |
| 328 | std::ios_base::cur); |
| 329 | |
| 330 | if (!inStream.isInDryRun()) |
| 331 | this->mBegin = inStream.tell(); |
| 332 | |
| 333 | static_cast<Derived*>(this)->bind(inStream); |
| 334 | inStream.template seek<ByteStream_type::maximumAlignment>(0, |
| 335 | std::ios_base::cur); |
| 336 | |
| 337 | if (!inStream.isInDryRun()) |
| 338 | this->mEnd = inStream.tell(); |
| 339 | } |
| 340 | |
| 341 | |
| 342 | // DynamicStruct<Derived, Container, Mutable> |
no test coverage detected