class documentation
A BaseBlobSource that provides the content from an entry.
This is useful if you want to create an item from an existing entry.
NOTE: this BlobSource does not keep a copy of the entry in RAM. Instead, the content will be read as needed.
| Method | __init__ |
The default constructor. |
| Method | get |
Return a blob. |
| Method | get |
Get the size of a blob from this factory. |
| Instance Variable | _entry |
Undocumented |
| Instance Variable | _size |
Undocumented |
overrides
pyzim.blob.BaseBlobSource.get_sizeGet the size of a blob from this factory.
The default implementation instantiates a new blob using BaseBlobSource.get_blob and calls BaseBlob.get_size. Subclasses may overwrite this method for a more efficient implementation.
Please See BaseBlob.get_size for details.
| Returns | |
int | the size of a blob in byzes |