byte_converter_intl library
Classes
- BigByteConverter
- High-performance byte unit converter using BigInt for arbitrary precision
- BigByteStats
- BigDataRate
- BigHistogram
- BigHistogramBucket
- ByteConverter
- High-performance byte unit converter with caching
- ByteFormatOptions
- Reusable formatter options for humanizing sizes and rates.
- ByteStats
- DataRate
- Represents a network/data rate. Internally stored as bits per second.
- FormatterSnapshot
- Utility for generating snapshot matrices of formatted byte sizes or data rates.
- Histogram
- HistogramBucket
- ParsedBig
- ParsedByteSize
- Sealed-like result for auto parsing a byte size.
- ParsedNormal
- ParseError
-
Diagnostics returned by
tryParse
helpers for byte and data rate parsing. -
ParseResult<
T> - Result wrapper for non-throwing parse helpers.
- StorageAlignment
- Describes a single alignment class within a StorageProfile.
- StorageProfile
- Defines storage alignment preferences used by byte converters when rounding to device specific buckets.
- TransferPlan
Enums
- BigSizeUnit
- Size units for BigByteConverter with support for larger units
- ByteStandard
- Unit standards/prefix systems used for formatting and parsing
- RoundingMode
- Rounding modes used when converting fractional values to integers (BigInt parsing)
- SizeUnit
Extensions
- BigDataRatePlanning on BigDataRate
- BigIntByteConverterExtension on BigInt
- Extensions for BigInt to create BigByteConverter instances
- ByteConverterTransfer on ByteConverter
- DataRatePlanning on DataRate
- DoubleByteConverterExtension on double
- Extensions for double to create ByteConverter instances
- IntByteConverterExtension on int
- Extensions for int to create ByteConverter instances
Functions
-
clearLocalizedUnitNames(
String locale) → void -
disableByteConverterIntl(
) → void -
enableByteConverterIntl(
{NumberFormatFactory? numberFormatFactory}) → void -
localizedUnitName(
String symbol, {String? locale}) → String? -
parseByteSizeAuto(
String input, {ByteStandard standard = ByteStandard.si, RoundingMode rounding = RoundingMode.round, double thresholdBytes = 9.22e18}) → ParsedByteSize - Parse a size string and return either ByteConverter or BigByteConverter depending on threshold. thresholdBytes: if parsed absolute bytes >= threshold, BigByteConverter is returned.
-
registerLocalizedUnitNames(
String locale, Map< String, String> names) → void
Typedefs
- NumberFormatFactory = NumberFormat Function(String locale)