SealdUtils_ParseSessionIdFromBytes method

int SealdUtils_ParseSessionIdFromBytes(
  1. Pointer<Uint8> fileBytes,
  2. int fileBytesLen,
  3. Pointer<Pointer<Utf8>> result,
  4. Pointer<Pointer<NativeSealdError>> error,
)

Takes an encrypted file as bytes, and returns the session id.

@param fileBytes The encrypted file as bytes. @param fileBytesLen The length of fileBytes. @param result A pointer to which to write the response. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdUtils_ParseSessionIdFromBytes(
  ffi.Pointer<ffi.Uint8> fileBytes,
  int fileBytesLen,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdUtils_ParseSessionIdFromBytes(
    fileBytes,
    fileBytesLen,
    result,
    error,
  );
}