(cls, buf: ReadBuffer)
| 5334 | |
| 5335 | @classmethod |
| 5336 | def read(cls, buf: ReadBuffer) -> SourcesDataMessage: |
| 5337 | sources = [ |
| 5338 | BuildSource( |
| 5339 | read_str_opt(buf), |
| 5340 | read_str_opt(buf), |
| 5341 | read_str_opt(buf), |
| 5342 | read_str_opt(buf), |
| 5343 | read_bool(buf), |
| 5344 | ) |
| 5345 | for _ in range(read_int_bare(buf)) |
| 5346 | ] |
| 5347 | return SourcesDataMessage(sources=sources) |
| 5348 | |
| 5349 | def write(self, buf: WriteBuffer) -> None: |
| 5350 | write_tag(buf, SOURCES_DATA_MESSAGE) |
nothing calls this directly
no test coverage detected