操作符 []= 方法
将 Dart 值存储在此处,偏移量为 index
。
在存储之前,指针将被解包(相当于使用 .address
),在加载时指针将被装箱(相当于使用 Pointer.fromAddress)。
在 32 位平台上,地址必须是 4 字节对齐的,在 64 位平台上,地址必须是 8 字节对齐的。
实现
external void operator []=(int index, Pointer<T> value);
将 Dart 值存储在此处,偏移量为 index
。
在存储之前,指针将被解包(相当于使用 .address
),在加载时指针将被装箱(相当于使用 Pointer.fromAddress)。
在 32 位平台上,地址必须是 4 字节对齐的,在 64 位平台上,地址必须是 8 字节对齐的。
external void operator []=(int index, Pointer<T> value);