# verifyFromBuffer method

VerificationResult verifyFromBuffer(

1. Uint8List? data

)

Decodes and verifies the specified data buffer.

param data The data buffer containing the BioSeal code. return Receives the verification results. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    VerificationResult verifyFromBuffer(Uint8List? data) {
      Pointer<UnsignedChar>? pData;
      if (data != null) {
      	pData = calloc.allocate<UnsignedChar>(data.length);
      	pData.cast<Uint8>().asTypedList(data.length).setAll(0, data);
      }
      Pointer<id3BiosealVerificationResult> pResult = calloc();
      try {
        var err = biosealSDK.id3Bioseal_VerifyFromBuffer(_pHandle.value, pData ?? nullptr, data?.length ?? 0, pResult);
        if (err != BiosealError.success.value) {
          calloc.free(pResult);
          throw BiosealException(err);
        }
        return VerificationResult(pResult);
      } finally {
        if (pData != null) {
          calloc.free(pData);
        }
      }
    }