所有 Abi 特定整数类型的超类型。
Abi 特定整数应扩展此类,并用 AbiSpecificIntegerMapping 注解它来声明 Abi.values 的整数大小和有符号性。
例如
/// The C `uintptr_t` type.
///
/// The [UintPtr] type is a native type, and should not be constructed in
/// Dart code.
/// It occurs only in native type signatures and as annotation on [Struct]
/// and [Union] fields.
@AbiSpecificIntegerMapping({
Abi.androidArm: Uint32(),
Abi.androidArm64: Uint64(),
Abi.androidIA32: Uint32(),
Abi.androidX64: Uint64(),
Abi.androidRiscv64: Uint64(),
Abi.fuchsiaArm64: Uint64(),
Abi.fuchsiaX64: Uint64(),
Abi.fuchsiaRiscv64: Uint64(),
Abi.iosArm: Uint32(),
Abi.iosArm64: Uint64(),
Abi.linuxArm: Uint32(),
Abi.linuxArm64: Uint64(),
Abi.linuxIA32: Uint32(),
Abi.linuxX64: Uint64(),
Abi.linuxRiscv32: Uint32(),
Abi.linuxRiscv64: Uint64(),
Abi.macosArm64: Uint64(),
Abi.macosX64: Uint64(),
Abi.windowsIA32: Uint32(),
Abi.windowsX64: Uint64(),
})
final class UintPtr extends AbiSpecificInteger {
const UintPtr();
}
- 实现类型
- 实现者
- 注解
-
- @Since('2.16')
构造函数
- AbiSpecificInteger()
-
const
属性
- hashCode → int
- 此对象的哈希码。无setter继承
- runtimeType → Type
- 对象运行时类型的表示。无setter继承
方法
-
noSuchMethod(
Invocation invocation) → dynamic - 当访问不存在的方法或属性时被调用。继承
-
toString(
) → String - 此对象的字符串表示。继承
运算符
-
operator ==(
Object other) → bool - 等于运算符。继承