Same as `Parser.process`. This function exists to make `Parser` like a `BytesIO` and `StringIO`. You can pass the `Parser` to each function which needs a writable buffer or IO.
(self, content: typing.Union[str, bytes])
| 50 | return not self.is_finished |
| 51 | |
| 52 | def write(self, content: typing.Union[str, bytes]) -> int: |
| 53 | """ |
| 54 | Same as `Parser.process`. |
| 55 | |
| 56 | This function exists to make `Parser` like a `BytesIO` and `StringIO`. |
| 57 | You can pass the `Parser` to each function which needs a writable buffer or IO. |
| 58 | """ |
| 59 | self.__raw.process(content) |
| 60 | return len(content) |
| 61 | |
| 62 | def process(self, content: typing.Union[str, bytes]) -> "Parser": |
| 63 | """ |