Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | getname |
def | getsize |
def | close |
def | isatty |
def | seek |
def | tell |
def | read |
def | skip |
Data Fields | |
closed | |
align | |
file | |
chunkname | |
chunksize | |
size_read | |
offset | |
seekable | |
def close | ( | self) |
Definition at line 86 of file chunk.py.
References Chunk.closed, and Chunk.skip().
def getname | ( | self) |
def getsize | ( | self) |
def isatty | ( | self) |
def read | ( | self, | |
size = -1 |
|||
) |
Read at most size bytes from the chunk. If size is omitted or negative, read until the end of the chunk.
Definition at line 120 of file chunk.py.
References Chunk.align, Chunk.chunksize, Chunk.closed, and Chunk.size_read.
def seek | ( | self, | |
pos, | |||
whence = 0 |
|||
) |
Seek to specified position into the chunk. Default position is 0 (start of chunk). If the file is not seekable, this will result in an error.
Definition at line 96 of file chunk.py.
References Chunk.chunksize, Chunk.closed, Chunk.offset, Chunk.seekable, and Chunk.size_read.
def skip | ( | self) |
Skip the rest of the chunk. If you are not interested in the contents of the chunk, this method should be called so that the file points to the start of the next chunk.
Definition at line 143 of file chunk.py.
References Chunk.align, Chunk.chunksize, Chunk.closed, sre_parse.min, openrsrc.read(), Chunk.read(), _Hqxdecoderengine.read(), _Rledecoderengine.read(), HexBin.read(), file_wrapper.read, Unpickler.read, addbase.read, Chunk.seekable, and Chunk.size_read.
def tell | ( | self) |
Definition at line 115 of file chunk.py.
References Chunk.closed, and Chunk.size_read.