Package tlslite :: Package utils :: Module codec :: Class Parser
[hide private]
[frames] | no frames]

Class Parser

source code


Instance Methods [hide private]
 
__init__(self, bytes)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
atLengthCheck(self) source code
 
get(self, length) source code
 
getFixBytes(self, lengthBytes) source code
 
getFixList(self, length, lengthList) source code
 
getRemainingLength(self) source code
 
getVarBytes(self, lengthLength) source code
 
getVarList(self, length, lengthLength) source code
 
getVarTupleList(self, elemLength, elemNum, lengthLength)
Read a variable length list of same sized tuples
source code
 
setLengthCheck(self, length) source code
 
startLengthCheck(self, lengthLength) source code
 
stopLengthCheck(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bytes)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getVarTupleList(self, elemLength, elemNum, lengthLength)

source code 

Read a variable length list of same sized tuples

Parameters:
  • elemLength - length in bytes of single tuple element
  • elemNum - number of elements in tuple
  • lengthLength - length in bytes of the list length variable