BigUIntView.smallLeftShiftInPlace

Shifts left using at most size_t.sizeof * 8 - 1 bits

struct BigUIntView(W, WordEndian endian = TargetEndian)
scope
void
smallLeftShiftInPlace
()
(
uint shift
)
if (
__traits(isUnsigned, W)
)

Examples

auto a = BigUIntView!size_t.fromHexString("afbbfae3cd0aff2714a1de7022b0029d");
a.smallLeftShiftInPlace(4);
assert(a == BigUIntView!size_t.fromHexString("fbbfae3cd0aff2714a1de7022b0029d0"));
a.smallLeftShiftInPlace(0);
assert(a == BigUIntView!size_t.fromHexString("fbbfae3cd0aff2714a1de7022b0029d0"));

Meta