Add float helpers#167
Conversation
444f67e to
71517d0
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #167 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 22 22
Lines 2785 2798 +13
=====================================
- Misses 2785 2798 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| return pack(value, 64, endian) | ||
|
|
||
|
|
||
| def pf16(value: float, endian: AllowedEndianness = "little") -> bytes: |
There was a problem hiding this comment.
shouldn't these pf# and f# functions also be exposed in dissect/cstruct/__init__.py just like the p# and u# functions?
There was a problem hiding this comment.
@copilot add this and make sure linting passes
There was a problem hiding this comment.
Done — pf16, pf32, pf64, f16, f32, f64 are now exported from dissect/cstruct/__init__.py (both in the import block and __all__). Linting passes. Commit: Expose pf16, pf32, pf64, f16, f32, f64 in __init__.py.
Closes #159
I couldn't really think of a good name for the float packer, so I just called it
pf16,pf32andpf64.