They can be implemented in Dart using bitwise and arithmetic
operations. If the performance is not good,
a benchmark using them can be submitted to the Dart team, and they
will be improved.
A possible problem is that some shift and bitwise operations have
slightly different semantics when compiled to
JavaScript than when run on the VM.
A good starting point would be to make a library implementing them
using shift (>>), bitwise and (&),
and bitwise or (|). For example, the low byte of x can be extracted with
int b = x & 0xFF;
x = x >> 8.
Note that this may cause problems with negative integers.
--
William Hesse
Software Engineer
whe...@google.com
Google Denmark ApS
Frederiksborggade 20B, 1 sal
1360 København K
Denmark
CVR nr. 28 86 69 84
If you received this communication by mistake, please don't forward it
to anyone else (it may contain confidential or privileged
information), please erase all copies of it, including all
attachments, and please let the sender know it went to the wrong
person. Thanks.