decode method

Future<Uint8List> decode(
  1. Uint8List input, {
  2. String? privKey,
})

Decodes a raw xlog log-file image back to plaintext on a helper isolate.

See decodeSync for the parameters and failure behavior; awaiting the returned future does not block the calling isolate.

Implementation

Future<Uint8List> decode(Uint8List input, {String? privKey}) =>
    Isolate.run(() => decodeSync(input, privKey: privKey));