NativeSymbols class final

Addresses of the library's C functions (native/rust/src/lib.rs).

Annotations
  • @immutable

Constructors

NativeSymbols({required Pointer<NativeFunction<Uint32 Function()>> abiVersion, required Pointer<NativeFunction<Bool Function(Pointer<Void>, Uint32)>> init, required Pointer<NativeFunction<Pointer<Uint8> Function(Size)>> alloc, required Pointer<NativeFunction<Uint64 Function(Pointer<Uint8>, Size, Int64)>> connect, required Pointer<NativeFunction<Uint32 Function(Uint64, Pointer<Uint8>, Size, Bool)>> send, required Pointer<NativeFunction<Bool Function(Uint64)>> ping, required Pointer<NativeFunction<Bool Function(Uint64, Int32, Pointer<Uint8>, Size)>> close, required Pointer<NativeFunction<Bool Function(Uint64)>> abort, required Pointer<NativeFunction<Bool Function(Uint64, Int64)>> grant, required Pointer<NativeFunction<Int64 Function(Uint64)>> buffered, required Pointer<NativeFunction<Bool Function(Uint64)>> requestDrain, required Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalize})
The addresses, however they were resolved.
const
NativeSymbols.lookup(Pointer<T> lookup<T extends NativeType>(String symbol))
Resolves every symbol by name with lookup (for example DynamicLibrary.lookup).
factory

Properties

abiVersion → Pointer<NativeFunction<Uint32 Function()>>
ws_native_abi_version
final
abort → Pointer<NativeFunction<Bool Function(Uint64)>>
ws_native_abort
final
alloc → Pointer<NativeFunction<Pointer<Uint8> Function(Size)>>
ws_native_alloc
final
buffered → Pointer<NativeFunction<Int64 Function(Uint64)>>
ws_native_buffered
final
close → Pointer<NativeFunction<Bool Function(Uint64, Int32, Pointer<Uint8>, Size)>>
ws_native_close
final
connect → Pointer<NativeFunction<Uint64 Function(Pointer<Uint8>, Size, Int64)>>
ws_native_connect
final
finalize → Pointer<NativeFunction<Void Function(Pointer<Void>)>>
ws_native_finalize
final
grant → Pointer<NativeFunction<Bool Function(Uint64, Int64)>>
ws_native_grant
final
hashCode → int
The hash code for this object.
no setterinherited
init → Pointer<NativeFunction<Bool Function(Pointer<Void>, Uint32)>>
ws_native_init
final
ping → Pointer<NativeFunction<Bool Function(Uint64)>>
ws_native_ping
final
requestDrain → Pointer<NativeFunction<Bool Function(Uint64)>>
ws_native_request_drain
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
send → Pointer<NativeFunction<Uint32 Function(Uint64, Pointer<Uint8>, Size, Bool)>>
ws_native_send
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited