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