CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
logwire_private.h
1#pragma once
2
3#include "log_private.h"
4#include "logwire.h"
5
6// Interns a field name so a decoded variant can point at it.
7//
8// stvarkn() pointer-copies the name it is given, so a key read off the wire has to outlive every
9// variant that carries it. The table is permanent for the lifetime of the process, exactly like
10// the channel registry, and capped so a sender that invents field names without bound cannot grow
11// it forever. Returns NULL for an empty key, and for one arriving past the cap.
12_Ret_maybenull_z_ const char* logWireInternKey(_In_opt_ strref key);
Wire codec for log records: records in, framed bytes out, and back again.