b.p.ReadVFile(object) : class documentation

Part of bzrlib.pack View In Hierarchy

Adapt a readv result iterator to a file like protocol.

The readv result must support the iterator protocol returning (offset, data_bytes) pairs.

Method __init__ Construct a new ReadVFile wrapper.
Method read Undocumented
Method readline Note that readline will not cross readv segments.
Method _next Undocumented
def __init__(self, readv_result):
Construct a new ReadVFile wrapper.
Parametersreadv_resultthe most recent readv result - list or generator
See Alsomake_readv_reader
def _next(self):
Undocumented
def read(self, length):
Undocumented
def readline(self):
Note that readline will not cross readv segments.
API Documentation for Bazaar, generated by pydoctor at 2014-04-16 00:00:59.