byte_data_wrapper 0.0.2 copy "byte_data_wrapper: ^0.0.2" to clipboard
byte_data_wrapper: ^0.0.2 copied to clipboard

Byte data wrapper

byte_data_wrapper #

A package to convert you byte data to int(Uint8, Uint16, Uint32, Uint64..)

Usage #

  • Add byte_data_wrapper to your pubspec.yamlfile.
  • Example:
import 'dart:typed_data';
import 'byte_data_wrapper/byte_data_wrapper.dart';

// Get the buffer.
final buffer = Uint16List.fromList(result).buffer;

// Create the byteDataCreator from buffer.
final byteDataCreator = ByteDataCreator.view(buffer);

// Get your data 

int firstData = byteDataCreator.getUint8();
int secondData = byteDataCreator.getUint16();
0
likes
120
pub points
33%
popularity

Publisher

unverified uploader

Byte data wrapper

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on byte_data_wrapper