byter 0.0.4
byter: ^0.0.4 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

Efficiently and Easy handle fixed sized byte data for example, unsigned 8 byte integers types.

example/example.dart

import 'dart:core';
import 'dart:mirrors';
import 'Foo.dart';

main() {
    Symbol lib = new Symbol("foo_lib");
    //library name stored as Symbol

    Symbol clsToSearch = new Symbol("Foo");
    // class name stored as Symbol

    if(checkIf_classAvailableInlibrary(lib, clsToSearch))
        // searches Foo class in foo_lib library
        print("class found..");
}

bool checkIf_classAvailableInlibrary(Symbol libraryName, Symbol className) {
    MirrorSystem mirrorSystem = currentMirrorSystem();
    LibraryMirror libMirror = mirrorSystem.findLibrary(libraryName);

    if (libMirror != null) {
        print("Found Library");
        print("checkng...class details..");
        print("No of classes found is : ${libMirror.declarations.length}");
        libMirror.declarations.forEach((s, d) => print(s));

        if (libMirror.declarations.containsKey(className)) return true;
        return false;
    }
}
1
likes
80
pub points
0%
popularity

Efficiently and Easy handle fixed sized byte data for example, unsigned 8 byte integers types.

Homepage

Documentation

API reference

Uploader

almpazel@gmail.com

License

Apache (LICENSE)

Dependencies

collection, convert, logger

More

Packages that depend on byter