merge method

int merge(
  1. Uint8List encodedBook
)

Learns the verified records of an encoded book that are not yet known and returns how many were added. Throws when the book does not decode.

Implementation

int merge(Uint8List encodedBook) {
  final n = _scoped(
    [encodedBook],
    (p) => _bc.lib
        .fn<_BookMergeC>('aviary_address_book_merge')
        .asFunction<_BookMergeD>()(_h, p[0], encodedBook.length),
  );
  if (n >= 0) return n;
  throw const AviaryException(
    'address book: malformed book',
    AviaryStatus.badInput,
  );
}