MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / allocbuf

Method allocbuf

FACE/Sequence.h:375–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373
374 template <typename T, typename Sequence, seq_size_type N>
375 inline T* AllocPolicy<T, Sequence, Bounded<N> >::allocbuf()
376 {
377 void* const raw =
378 ACE_Allocator::instance()->malloc(N * sizeof(T));
379 T* const mem = static_cast<T*>(raw);
380 Sequence::ElementPolicy::construct(mem, N, false);
381 return mem;
382 }
383
384 template <typename T, typename Sequence>
385 inline T* AllocPolicy<T, Sequence, Unbounded>::allocbuf(seq_size_type n)

Callers

nothing calls this directly

Calls 3

instanceFunction · 0.85
constructFunction · 0.85
mallocMethod · 0.45

Tested by

no test coverage detected