We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a4c87 commit 594efa4Copy full SHA for 594efa4
1 file changed
tsrkit_types/itf/codable.py
@@ -80,4 +80,7 @@ def _check_buffer_size(cls, buffer: bytearray, size: int, offset: int) -> None:
80
offset: The offset at which to start encoding the value.
81
"""
82
if len(buffer) - offset < size:
83
- raise ValueError("Buffer too small to encode value")
+ raise ValueError("Buffer too small to encode value")
84
+
85
+ def __reduce__(self):
86
+ return (self.__class__.decode, (self.encode(),))
0 commit comments