epoll_data class
Hack to get make epoll_event work with dart FFI.
epoll_event has attribute((packed)) on i386 and amd64, so the struct is 12-bytes large there. on arm 32-bit and 64-bit it's 16-bytes always.
Let's specify @ffi.Packed(1) unconditionally, but instead of making the first events field a Uint32, we make it a union: union { uint32_t events; uint64_t padding; // for arm 32-bit and 64-bit uint32_t padding; // for x86 and x86_64 }
Only thing we need to look out for is the offsets still matching.
- Inheritance
-
- Object
- NativeType
- Union
- epoll_data
- Annotations
-
- @Packed(1)
Constructors
Properties
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