MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / buffer_offset

Method buffer_offset

system/lib/llvm-libc/shared/rpc.h:250–253  ·  view source on GitHub ↗

Offset of the buffer containing the packets after the inbox and outbox.

Source from the content-addressed store, hash-verified

248
249 /// Offset of the buffer containing the packets after the inbox and outbox.
250 RPC_ATTRS static constexpr uint64_t buffer_offset(uint32_t port_count) {
251 return align_up(header_offset(port_count) + port_count * sizeof(Header),
252 alignof(Buffer));
253 }
254
255 /// Conditionally set the n-th bit in the atomic bitfield.
256 RPC_ATTRS static constexpr uint32_t set_nth(uint32_t *bits, uint32_t index,

Callers

nothing calls this directly

Calls 1

align_upFunction · 0.70

Tested by

no test coverage detected