freezer/deezcryptor/lib/deezcryptor_bindings_generated.dart

49 lines
1.4 KiB
Dart

// ignore_for_file: always_specify_types
// ignore_for_file: camel_case_types
// ignore_for_file: non_constant_identifier_names
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
import 'dart:ffi' as ffi;
/// Bindings for `src/deezcryptor.h`.
///
/// Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
///
class DeezcryptorBindings {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup;
/// The symbols are looked up in [dynamicLibrary].
DeezcryptorBindings(ffi.DynamicLibrary dynamicLibrary)
: _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
DeezcryptorBindings.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
lookup)
: _lookup = lookup;
int decryptChunk(
ffi.Pointer<ffi.Char> buffer,
ffi.Pointer<ffi.Char> encrypted,
ffi.Pointer<ffi.Char> key,
) {
return _decryptChunk(
buffer,
encrypted,
key,
);
}
late final _decryptChunkPtr = _lookup<
ffi.NativeFunction<
ffi.Int Function(ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Char>,
ffi.Pointer<ffi.Char>)>>('decryptChunk');
late final _decryptChunk = _decryptChunkPtr.asFunction<
int Function(ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Char>,
ffi.Pointer<ffi.Char>)>();
}