FileSection#
- class barecat.FileSection(file, start, size, readonly=True)#
Bases:
io.IOBase
File-like object representing a section of a file.
Properties#
Size of the section in bytes. |
Methods#
|
Read a from the section, starting from the current position. |
|
Read bytes into a buffer from the section, starting from the current position. |
|
Read all remaining bytes from the section. |
|
Return whether object was opened for reading. |
|
Return whether object was opened for writing. |
|
Write data to the section, starting from the current position. |
|
Read and return a line from the stream. |
|
Return current stream position. |
|
Change stream position. |
|
Flush and close the IO object. |