Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aviate-labs/io.mo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Basic Interfaces for I/O Primitives

Usage

let data = Iter.fromArray<Nat8>(Blob.toArray(Text.encodeUtf8(
    "Text or something else that can be converted to bytes.",
)));

let reader = IO.fromIter(data);
switch (IO.readAll(reader)) {
    case (#ok(bs)) // [...].size() == 54.
    ...
};

About

I/O Primitives for Motoko

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published