fromCode static method

WalOpKind fromCode(
  1. int code
)

Decodes the on-disk byte.

Implementation

static WalOpKind fromCode(int code) => switch (code) {
  1 => WalOpKind.put,
  2 => WalOpKind.delete,
  _ => throw VxsFormatException('unknown WAL op code $code'),
};