diff --git a/include/ipc.hpp b/include/ipc.hpp index 67a8897e..1fb99591 100644 --- a/include/ipc.hpp +++ b/include/ipc.hpp @@ -6,4 +6,8 @@ namespace IPC { // TODO: Maybe validate the response count stuff fits in 6 bits return (commandID << 16) | (normalResponses << 6) | translateResponses; } + + constexpr std::uint32_t pointerHeader(std::uint32_t index, std::uint32_t size) { + return (size << 14) | (index << 10) | 2; + } } \ No newline at end of file