toCbor method

  1. @override
CborObject toCbor()
override

Converts the object to a CBOR object.

Implementation

@override
CborObject toCbor() {
  return CborListValue.fixedLength(
      [CborUnsignedValue.u64(mem), CborUnsignedValue.u64(steps)]);
}