![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, data, bitlength=None, offset=None) | |
getbit (self, pos) | |
getbyte (self, pos) | |
getbyteslice (self, start, end) | |
bytelength (self) | |
__copy__ (self) | |
byteoffset (self) | |
rawbytes (self) | |
Public Attributes | |
offset = offset | |
bitlength = bitlength | |
self.byteoffset+self.bytelength]) | byteoffset |
Protected Member Functions | |
_appendstore (self, store) | |
_prependstore (self, store) | |
Protected Attributes | |
_rawarray = data | |
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.
__init__ | ( | self, | |
data, | |||
bitlength = None, | |||
offset = None ) |
data is either a bytearray or a MmapByteArray
Definition at line 140 of file bitstring.py.
__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.
bytelength | ( | self | ) |
Definition at line 165 of file bitstring.py.
byteoffset | ( | self | ) |
Definition at line 213 of file bitstring.py.
getbit | ( | self, | |
pos ) |
Definition at line 150 of file bitstring.py.
getbyte | ( | self, | |
pos ) |
Direct access to byte data.
Definition at line 155 of file bitstring.py.
getbyteslice | ( | self, | |
start, | |||
end ) |
Direct access to byte data.
Definition at line 159 of file bitstring.py.
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 = bitlength |
Definition at line 148 of file bitstring.py.
self.byteoffset + self.bytelength]) byteoffset |
Definition at line 207 of file bitstring.py.
offset = offset |
Definition at line 147 of file bitstring.py.