Debian Codegraph @

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

raw
1 class _UniffiConverterUInt16(_UniffiConverterPrimitiveInt):
2 CLASS_NAME = "u16"
3 VALUE_MIN = 0
4 VALUE_MAX = 2**16
5
6 @staticmethod
7 def read(buf):
8 return buf.read_u16()
9
10 @staticmethod
11 def write(value, buf):
12 buf.write_u16(value)