【发布时间】:2016-04-10 12:16:21
【问题描述】:
我有这个代码:
tmp = (uint)len;
writer.CurPosition = value + 1;
do
{
value++;
writer.dest.WriteByte((byte)((tmp & 0x7F) | 0x80));
} while ((tmp >>= 7) != 0);
但我不明白tmp >>= 7 是如何工作的?
【问题讨论】:
-
对我来说看起来像一个位移运算符。 tmp 被重新分配给位移操作的结果。看到这个问题stackoverflow.com/questions/460562/…
标签: c# bitwise-operators