MCPcopy Create free account
hub / github.com/apache/trafficserver / align_pointer_forward

Function align_pointer_forward

include/tscore/ink_align.h:58–68  ·  view source on GitHub ↗

Move a pointer forward until it meets the alignment width.

Source from the content-addressed store, hash-verified

56// Move a pointer forward until it meets the alignment width.
57//
58static inline void *
59align_pointer_forward(const void *pointer_, size_t alignment)
60{
61 char *pointer = (char *)pointer_;
62 //
63 // Round up alignment..
64 //
65 pointer = (char *)INK_ALIGN((ptrdiff_t)pointer, alignment);
66
67 return (void *)pointer;
68}
69
70//
71// Move a pointer forward until it meets the alignment width specified,

Callers 2

dns_processFunction · 0.85
LogBufferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected