byte_converter

Creator: coderz1093

Last updated:

0 purchases

byte_converter Image
byte_converter Images

Languages

Categories

Add to Cart

Description:

byte converter

ByteConverter #
available on Pub
Provides a simple interface for conversion of Digital values such as Bytes, KiloBytes etc.
This library is a based on ByteSize library available on C# dotnet platforms which i am a huge fan off.
Created from templates made available by Stagehand under a BSD-style
license.
Usage #
A simple usage example:
import 'package:byte_converter/byte_converter.dart';

main() {
double bytes = 100000;

ByteConverter converter = ByteConverter(bytes);
print('$bytes bytes is ${converter.kiloBytes} Kb');
print('$bytes bytes is ${converter.megaBytes} Mb');
print('$bytes bytes is ${converter.gigaBytes} Gb');
print('$bytes bytes is ${converter.teraBytes} Tb');

// or

double gigaByte = 70.5;
converter = ByteConverter.fromGigaBytes(gigaByte);
print('$bytes bytes is ${converter.kiloBytes} Kb');
print('$bytes bytes is ${converter.megaBytes} Mb');
print('$bytes bytes is ${converter.gigaBytes} Gb');
print('$bytes bytes is ${converter.teraBytes} Tb');
}
copied to clipboard
License #
This project is licensed under MIT License. Read about it here: MIT License
Features and bugs #
Please file feature requests and bugs here issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.