byte_extensions 0.0.3 copy "byte_extensions: ^0.0.3" to clipboard
byte_extensions: ^0.0.3 copied to clipboard

Extensions for handling common types and converting them to/from byte arrays

Codemagic build status Pub Version

This package provides some helpful extensions for common types to convert them to and from their byte equivalents.

Features #

This extension helps you easily convert int, double, and BigInt types into their various byte representations while controlling endianness.

For integer types, the extension support converting to the signed or unsigned bytes as a 64-, 32-, 16-, or 8-bit number.

For the double type, the extension supports converting to the IEEE-754 floating point values as a 64-bit double precision or 32-bit single precision number.

This exension also adds some helpers to make it a little faster to encode strings into their byte forms for a given encoding.

4
likes
160
points
1.61k
downloads

Publisher

verified publisherflutter.institute

Weekly Downloads

Extensions for handling common types and converting them to/from byte arrays

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on byte_extensions