fromWire static method

LayoutErrorKind fromWire(
  1. int raw
)

Decodes a raw z_layout_error_t value.

Total: every value outside canon's domain yields unknown.

Implementation

static LayoutErrorKind fromWire(int raw) => switch (raw) {
  0 => incorrectLayoutArgs,
  1 => providerIncompatibleLayout,
  _ => unknown,
};