Extract the inner bytes of the <detail> element from a CoT XML event,
exactly as they appear in the source — no XML normalization, no
re-escaping. Useful for callers that want to build a raw_detail
fallback packet alongside the typed packet.
Returns an empty Buffer for events with a self-closing <detail/> or
no <detail> at all. Receivers rehydrate the full event by wrapping
these bytes in <detail>…</detail>, so a byte-for-byte extraction is
required to keep the round trip loss-free.
Extract the inner bytes of the
<detail>element from a CoT XML event, exactly as they appear in the source — no XML normalization, no re-escaping. Useful for callers that want to build araw_detailfallback packet alongside the typed packet.Returns an empty
Bufferfor events with a self-closing<detail/>or no<detail>at all. Receivers rehydrate the full event by wrapping these bytes in<detail>…</detail>, so a byte-for-byte extraction is required to keep the round trip loss-free.