Belle II Software  release-08-01-10
ConstByteStore Class Reference
Inheritance diagram for ConstByteStore:
Collaboration diagram for ConstByteStore:

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
 

Private Member Functions

def _appendstore (self, store)
 
def _prependstore (self, store)
 

Private Attributes

 _rawarray
 

Static Private Attributes

tuple __slots__ = ('offset', '_rawarray', 'bitlength')
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  data,
  bitlength = None,
  offset = None 
)
data is either a bytearray or a MmapByteArray

Definition at line 140 of file bitstring.py.

Member Function Documentation

◆ _appendstore()

def _appendstore (   self,
  store 
)
private
Join another store on to the end of this one.

Definition at line 175 of file bitstring.py.

◆ _prependstore()

def _prependstore (   self,
  store 
)
private
Join another store on to the start of this one.

Definition at line 191 of file bitstring.py.

◆ getbyte()

def getbyte (   self,
  pos 
)
Direct access to byte data.

Definition at line 155 of file bitstring.py.

◆ getbyteslice()

def getbyteslice (   self,
  start,
  end 
)
Direct access to byte data.

Definition at line 159 of file bitstring.py.


The documentation for this class was generated from the following file: