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

type Writer

source code


Instance Methods [hide private]
 
__init__(self) source code
 
add(self, x, length) source code
 
addFixSeq(self, seq, length) source code
 
addVarSeq(self, seq, length, lengthLength) source code
 
addVarTupleSeq(self, seq, length, lengthLength)
Add a variable length list of same-sized element tuples.
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

addVarTupleSeq(self, seq, length, lengthLength)

source code 

Add a variable length list of same-sized element tuples.

Note that all tuples must have the same size.

Inverse of Parser.getVarTupleList()

Parameters:
  • seq (enumerable) - list of tuples
  • length (int) - length of single element in tuple
  • lengthLength (int) - length in bytes of overall length field