compress With Remarks Fallback
Compress a packet, stripping remarks if the result exceeds maxWireBytes.
First attempts compression with remarks intact. If the wire payload fits within maxWireBytes, returns it as-is. Otherwise, clears the remarks field and re-compresses. Returns null if even the stripped packet exceeds the limit (caller should drop the packet).
This is a thin wrapper over compressWithRemarksFallbackDetailed that discards the remarksStripped flag. Use the Detailed variant if you need to tell "fit as-is", "fit after strip", and "dropped" apart — e.g. for observability or metrics.
Return
The wire payload, or null if the packet is too large even without remarks.
Parameters
The packet with remarks populated.
Maximum allowed wire payload size (e.g. 225).
Throws
if the underlying zstd codec fails to compress.