Belle II Software development
|
Public Member Functions | |
def | __init__ (self, data, bitlength=None, offset=None) |
def | getbit (self, pos) |
def | getbyte (self, pos) |
def | getbyteslice (self, start, end) |
def | bytelength (self) |
def | __copy__ (self) |
def | byteoffset (self) |
def | rawbytes (self) |
Public Attributes | |
offset | |
bitlength | |
Protected Member Functions | |
def | _appendstore (self, store) |
def | _prependstore (self, store) |
Protected Attributes | |
_rawarray | |
Static Private Attributes | |
tuple | __slots__ = ('offset', '_rawarray', 'bitlength') |
Stores raw bytes together with a bit offset and length. Used internally - not part of public interface.
Definition at line 132 of file bitstring.py.
def __init__ | ( | self, | |
data, | |||
bitlength = None , |
|||
offset = None |
|||
) |
data is either a bytearray or a MmapByteArray
Definition at line 140 of file bitstring.py.
def __copy__ | ( | self | ) |
Definition at line 172 of file bitstring.py.
|
protected |
Join another store on to the end of this one.
Definition at line 175 of file bitstring.py.
|
protected |
Join another store on to the start of this one.
Definition at line 191 of file bitstring.py.
def bytelength | ( | self | ) |
Definition at line 165 of file bitstring.py.
def byteoffset | ( | self | ) |
Definition at line 213 of file bitstring.py.
def getbit | ( | self, | |
pos | |||
) |
Definition at line 150 of file bitstring.py.
def getbyte | ( | self, | |
pos | |||
) |
Direct access to byte data.
Definition at line 155 of file bitstring.py.
def getbyteslice | ( | self, | |
start, | |||
end | |||
) |
Direct access to byte data.
Definition at line 159 of file bitstring.py.
def rawbytes | ( | self | ) |
Definition at line 217 of file bitstring.py.
|
staticprivate |
Definition at line 138 of file bitstring.py.
|
protected |
Definition at line 142 of file bitstring.py.
bitlength |
Definition at line 148 of file bitstring.py.
offset |
Definition at line 147 of file bitstring.py.