fromWire static method
Decodes a zenoh-c wire z_reply_keyexpr_t value (0/1) into a
ReplyKeyExpr.
Any out-of-range value falls back to ReplyKeyExpr.matchingQuery rather than crashing on an unbounded index.
Implementation
static ReplyKeyExpr fromWire(int raw) {
if (raw < 0 || raw >= ReplyKeyExpr.values.length) {
return ReplyKeyExpr.matchingQuery;
}
return ReplyKeyExpr.values[raw];
}