Files
praxisandClaude Fable 5.2 c2194c59d4 Protocol core: packet translation between source and native
127 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:47 +02:00

14 lines
714 B
C++

#pragma once
#include <cstdint>
namespace gateway::keyring_slots {
inline constexpr unsigned Count=32;
inline constexpr unsigned SourceFirst=81,SourceEnd=SourceFirst+Count;
inline constexpr unsigned NativeFirst=112,NativeEnd=NativeFirst+Count;
inline constexpr unsigned NativeInventoryCount=145,SdkInventoryCount=108;
inline constexpr unsigned NativeMaskGroup=168,NativeMaskFirst=169+NativeFirst;
constexpr bool native(unsigned slot){return slot>=NativeFirst && slot<NativeEnd;}
constexpr bool source(unsigned slot){return slot>=SourceFirst && slot<SourceEnd;}
constexpr unsigned to_source(unsigned slot){return slot-NativeFirst+SourceFirst;}
static_assert(NativeMaskFirst==281 && NativeMaskFirst+Count-1==312);
}