verify function

void verify(
  1. Uint8List data
)

Validates that the given bytes are well-formed CBOR.

This performs strict validation including:

  • Valid CBOR structure (headers, nesting)
  • UTF-8 validation for text strings
  • Integer map keys in deterministic order

Throws an exception if the bytes are not valid CBOR.

Implementation

void verify(Uint8List data) => ffi.cborVerify(data: data);