decompress
Decompress a wire payload back to a TakPacketV2Data. Handles both compressed (dict-based) and uncompressed (0xFF) payloads.
Throws
for input the spec says to reject (payload < 2 bytes, unknown dictionary ID, uncompressed bytes > MAX_DECOMPRESSED_SIZE).
directly (unwrapped) when the underlying zstd codec rejects the frame — e.g. a decompression bomb exceeding MAX_DECOMPRESSED_SIZE — so callers can catch the typed exception. Other zstd / protobuf failures are wrapped in RuntimeException (the original cause is preserved via cause).