Method
write_undefined
(self, value: bytes | int | IFDRational)
Source from the content-addressed store, hash-verified
| 849 | |
| 850 | @_register_writer(7) |
| 851 | def write_undefined(self, value: bytes | int | IFDRational) -> bytes: |
| 852 | if isinstance(value, IFDRational): |
| 853 | value = int(value) |
| 854 | if isinstance(value, int): |
| 855 | value = str(value).encode("ascii", "replace") |
| 856 | return value |
| 857 | |
| 858 | @_register_loader(10, 8) |
| 859 | def load_signed_rational( |
Callers
nothing calls this directly
Tested by
no test coverage detected