diff options
Diffstat (limited to 'third_party/rust/uniffi_bindgen/src/bindings/python/templates/Float32Helper.py')
-rw-r--r-- | third_party/rust/uniffi_bindgen/src/bindings/python/templates/Float32Helper.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/rust/uniffi_bindgen/src/bindings/python/templates/Float32Helper.py b/third_party/rust/uniffi_bindgen/src/bindings/python/templates/Float32Helper.py new file mode 100644 index 0000000000..a52107a638 --- /dev/null +++ b/third_party/rust/uniffi_bindgen/src/bindings/python/templates/Float32Helper.py @@ -0,0 +1,8 @@ +class _UniffiConverterFloat(_UniffiConverterPrimitiveFloat): + @staticmethod + def read(buf): + return buf.read_float() + + @staticmethod + def write_unchecked(value, buf): + buf.write_float(value) |