Tutorial
API Reference
"""Writer of the buffer.""" from abc import ABC, abstractmethod from typing import List [docs] class BufferWriter(ABC): """Interface of the buffer writer.""" [docs] @abstractmethod def write(self, data: List) -> None: """Write to buffer.""" [docs] @abstractmethod def finish(self) -> None: """Finish writing."""