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.
...
};
-
Notifications
You must be signed in to change notification settings - Fork 1
I/O Primitives for Motoko
License
aviate-labs/io.mo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
I/O Primitives for Motoko
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages 0
No packages published