Skip to content

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

License

Notifications You must be signed in to change notification settings

Taym95/byte_data_wrapper

Repository files navigation

byte_data_wrapper

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

Usage

  • Addbyte_data_wrapperto yourpubspec.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();

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages