Easypt

&=

..Root.ByteWrapper.&=

Performs bitwise and on bound byte.

Child of:

ByteWrapper

Signatures:

NativeCallable, Callable

Example:

import("memory");
import("algorithm");

auto str.=("\012\012\012\012\012\012");
auto a.=(ByteView(str));

a[0].get().|=(ByteWrapper(6));
a[1].get().&=(ByteWrapper(6));
a[2].get().^=(ByteWrapper(6));
a[3].get().<<=(ByteWrapper(1));
a[4].get().>>=(ByteWrapper(1));
a[5].get().~=();


algorithm.forEach(a, {
    log(args[0].get().toInt());
});

Expected output

14
4
10
24
6
243