Information about a Zstandard frame.
| 42 | |
| 43 | |
| 44 | class FrameInfo: |
| 45 | """Information about a Zstandard frame.""" |
| 46 | |
| 47 | __slots__ = 'decompressed_size', 'dictionary_id' |
| 48 | |
| 49 | def __init__(self, decompressed_size, dictionary_id): |
| 50 | super().__setattr__('decompressed_size', decompressed_size) |
| 51 | super().__setattr__('dictionary_id', dictionary_id) |
| 52 | |
| 53 | def __repr__(self): |
| 54 | return (f'FrameInfo(decompressed_size={self.decompressed_size}, ' |
| 55 | f'dictionary_id={self.dictionary_id})') |
| 56 | |
| 57 | def __setattr__(self, name, _): |
| 58 | raise AttributeError(f"can't set attribute {name!r}") |
| 59 | |
| 60 | |
| 61 | def get_frame_info(frame_buffer): |
no outgoing calls
searching dependent graphs…