Debian Codegraph @

third_party/rust/uniffi_bindgen/src/bindings/python/templates/Int8Helper.py

raw
1 class _UniffiConverterInt8(_UniffiConverterPrimitiveInt):
2 CLASS_NAME = "i8"
3 VALUE_MIN = -2**7
4 VALUE_MAX = 2**7
5
6 @staticmethod
7 def read(buf):
8 return buf.read_i8()
9
10 @staticmethod
11 def write(value, buf):
12 buf.write_i8(value)