ByteWord class

16 位字(word):高低字节拆装。

值对象,构造时校验值域(0..0xFFFF,越界抛 ArgumentError); 序列化端序在 bytes 处显式指定,默认 little-endian。

Constructors

ByteWord(int value)

Properties

hashCode → int
The hash code for this object.
no setterinherited
high → int
高 8 位。
no setter
low → int
低 8 位。
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
0..0xFFFF。
final

Methods

bytes({Endian endian = Endian.little}) → Uint8List
按指定端序序列化为 2 字节。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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