Home | History | Annotate | Download | only in python2.7

Lines Matching defs:Chunk

3 An IFF chunk (used in formats such as AIFF, TIFF, RMFF (RealMedia File
15 The ID is a 4-byte string which identifies the type of chunk.
18 gives the size of the whole chunk, including the 8-byte header.
21 usage of the Chunk class defined here is to instantiate an instance at
22 the start of each chunk and read from the instance until it reaches
30 chunk = Chunk(file)
33 chunktype = chunk.getname()
35 data = chunk.read(nbytes)
42 Extra methods are: skip() (called by close, skips to the end of the chunk),
43 getname() (returns the name (ID) of the chunk)
46 (including a chunk instance), and one optional argument, a flag which
51 class Chunk:
79 """Return the name (ID) of the current chunk."""
83 """Return the size of the current chunk."""
97 """Seek to specified position into the chunk.
98 Default position is 0 (start of chunk).
121 """Read at most size bytes from the chunk.
123 of the chunk.
144 """Skip the rest of the chunk.
145 If you are not interested in the contents of the chunk,
147 the start of the next chunk.