Part of bzrlib.pack View In Hierarchy
Method | read | Read this record. |
Method | validate | Validate this record. |
Method | _content_reader | Undocumented |
Inherited from BaseReader:
Method | __init__ | Constructor. |
Method | reader_func | Undocumented |
Method | _read_line | Undocumented |
You can either validate or read a record, you can't do both.
Returns | A tuple of (names, callable). The callable can be called repeatedly to obtain the bytes for the record, with a max_length argument. If max_length is None, returns all the bytes. Because records can be arbitrarily large, using None is not recommended unless you have reason to believe the content will fit in memory. |