quasimoto.riff
index
/home/vkottler/src/vkottler/workspace/quasimoto/quasimoto/riff/__init__.py

A module implementing interfaces for RIFF files.

 
Package Contents
       
chunk

 
Classes
       
vcorelib.logging.LoggerMixin(builtins.object)
RiffInterface

 
class RiffInterface(vcorelib.logging.LoggerMixin)
    RiffInterface(stream: <class 'BinaryIO'>, is_writer: bool = True) -> None
 
A class for reading and writing RIFF files.
 
 
Method resolution order:
RiffInterface
vcorelib.logging.LoggerMixin
builtins.object

Methods defined here:
__init__(self, stream: <class 'BinaryIO'>, is_writer: bool = True) -> None
Initialize this instance.
chunks(self) -> Iterator[quasimoto.riff.chunk.Chunk]
Read file chunks.
finalize(self) -> None
Finalize the header size.
read(self) -> Optional[quasimoto.riff.chunk.Chunk]
Read the next chunk.
read_size(self) -> int
Read a size from the stream.
write(self, chunk: quasimoto.riff.chunk.Chunk) -> None
Write a chunk to the file.
write_size(self, size: int, seek: int = None) -> None
An interface for writing a size field.

Class methods defined here:
from_path(path: pathlib.Path, is_writer: bool = True) -> Iterator[~T] from builtins.type
Create a RIFF interface from a path.

Data and other attributes defined here:
__annotations__ = {}

Methods inherited from vcorelib.logging.LoggerMixin:
log_time(self, message: str, *args, level: int = 20, reminder: bool = False, **kwargs) -> Iterator[NoneType]
A simple wrapper.

Data descriptors inherited from vcorelib.logging.LoggerMixin:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

 
Data
        Iterator = typing.Iterator
NULL_BYTE = b'\x00'
Optional = typing.Optional
T = ~T
Type = typing.Type