Encodes and decodes the payload of one WAL frame: a batch of operations.
varint opCount
repeat: u8 kind, varint keyLen, key, varint valueLen, value
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Uint8List payload, void visit(WalOpKind kind, Uint8List key, Uint8List? value)) → void - Decodes a frame payload, visiting operations in order.
-
encode(
List< WalOp> ops) → Uint8List -
Encodes
opsinto a frame payload. -
encodedSize(
List< WalOp> ops) → int -
Bytes needed to encode
ops. -
encodeInto(
Uint8List out, int offset, List< WalOp> ops) → int -
Encodes
opsintooutstarting atoffset; returns the end offset. -
opSize(
Uint8List key, Uint8List? value) → int - Bytes needed for one operation, excluding the batch count.
-
writeOp(
Uint8List out, int offset, WalOpKind kind, Uint8List key, Uint8List? value) → int - Writes one operation and returns the end offset.