All notable changes to ByteFlow.Net will be documented in this file.
Added
- Support for both IEC (KiB, MiB, GiB) and SI (KB, MB, GB) unit standards
- Culture‑aware parsing and formatting (e.g.
1,5 MBin de‑DE) - Customizable suffix sets (allowing domain‑specific units)
- Alignment / padding helper (
ToHumanBytesAligned)
Changed
- Updated existing methods to include optional
IFormatProviderparameter - XML documentation updated to reflect new API
- Default behavior remains backward compatible
Fixed
- Off‑by‑one padding in alignment helper
- Improved test coverage to ensure all code paths (especially
TryParseHumanBytesdefault overload) are exercised
Initial release of ByteFlow.Net
- Convert bytes into human‑readable strings (
1234567 → "1.18 MB") - Parse strings back into bytes (
"2.5 GB" → 2684354560) - Safe parsing with
TryParseHumanBytes - Zero dependencies, just clean C#