MCPcopy Create free account
hub / github.com/apache/madlib / bindToStream

Method bindToStream

src/dbal/DynamicStruct_impl.hpp:321–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 */
320template <class Derived, class Container, bool IsMutable>
321inline
322void
323DynamicStruct<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>

Callers 1

DynamicStructClass · 0.80

Calls 4

sizeMethod · 0.95
isInDryRunMethod · 0.80
tellMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected