MCPcopy Create free account
hub / github.com/Klipper3d/klipper / command_encode_ptr

Function command_encode_ptr

src/command.c:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static uint8_t next_sequence = MESSAGE_DEST;
17
18static uint32_t
19command_encode_ptr(void *p)
20{
21 if (sizeof(size_t) > sizeof(uint32_t))
22 return p - console_receive_buffer();
23 return (size_t)p;
24}
25
26void *
27command_decode_ptr(uint32_t v)

Callers 1

command_parsefFunction · 0.85

Calls 1

console_receive_bufferFunction · 0.50

Tested by

no test coverage detected