fi2b 1.0.0

Convert floating point and integer numbers into bytes and put them into an array
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 5.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 278.21 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • 2A5F/fi2b
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 2A5F

fi2b

Rust version documentation LICENSE

Convert floating point and integer numbers into bytes and put them into an array

let a: &[u8] = &fi2b![1, 2, 1.0, -1.0];
assert_eq!(
    a,
    [1u8, 0u8, 0u8, 0u8, 2u8, 0u8, 0u8, 0u8, 0u8, 0u8, 128u8, 63u8, 0u8, 0u8, 128u8, 191u8]
)