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

Method buffer_bytes

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

Number of bytes to allocate for the buffer containing the packets.

Source from the content-addressed store, hash-verified

227
228 /// Number of bytes to allocate for the buffer containing the packets.
229 RPC_ATTRS static constexpr uint64_t buffer_bytes(uint32_t port_count,
230 uint32_t lane_size) {
231 return port_count * lane_size * sizeof(Buffer);
232 }
233
234 /// Offset of the inbox in memory. This is the same as the outbox if inverted.
235 RPC_ATTRS static constexpr uint64_t inbox_offset(uint32_t port_count) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected