Module refinery.units.blockwise.shl
Expand source code Browse git
from __future__ import annotations
from refinery.units.blockwise import BinaryOperation
class shl(BinaryOperation):
"""
Shift the bits of each block left, filling with zero bits.
"""
@staticmethod
def operate(a, b):
return a << b
@staticmethod
def inplace(a, b):
a <<= b
Classes
class shl (*argument, bigendian=False, blocksize=1)-
Shift the bits of each block left, filling with zero bits.
Expand source code Browse git
class shl(BinaryOperation): """ Shift the bits of each block left, filling with zero bits. """ @staticmethod def operate(a, b): return a << b @staticmethod def inplace(a, b): a <<= bAncestors
Subclasses
Static methods
def operate(a, b)-
Expand source code Browse git
@staticmethod def operate(a, b): return a << b def inplace(a, b)-
Expand source code Browse git
@staticmethod def inplace(a, b): a <<= b
Inherited members
BinaryOperation:FilterEverythingRequiresassemblebytestreamchunkchunk_into_bytescodecconsolefilterfinishhandlesis_quietis_reversiblelabelledleniencylog_alwayslog_debuglog_detachlog_faillog_infolog_levellog_warnloggernamenozzleoptional_dependenciesprocessprocess_blockreadread1required_dependenciesrestreverserunsourcesuperinitunchunk