MCPcopy Create free account
hub / github.com/apache/impala / SetNext

Method SetNext

be/src/util/mem-util.h:47–52  ·  view source on GitHub ↗

Set the next element to 'val' and advance 'current' to the next element.

Source from the content-addressed store, hash-verified

45
46 /// Set the next element to 'val' and advance 'current' to the next element.
47 ALWAYS_INLINE void SetNext(T& val) {
48 DCHECK(IsValid());
49 // memcpy() is necessary because 'current' may not be aligned.
50 memcpy(current, &val, sizeof(T));
51 SkipNext(1);
52 }
53
54 /// Return a pointer to the current element and advance 'current' to the next element.
55 ALWAYS_INLINE T* Advance() {

Callers 3

GetNextValuesMethod · 0.45
CopyLiteralsToOutputMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected