sizeOf<T extends NativeType> function

int sizeOf <T extends NativeType>()

Number of bytes used by native type T.

Includes padding and alignment of structs.

Support for invoking this function with non-constant T will be removed in the next stable version of Dart and it will become mandatory to invoke it with a compile-time constant T.

Implementation

external int sizeOf<T extends NativeType>();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/sizeOf.html