Library for dealing with concatenated byte arrays as if it was a single byte array.
valbytes is beta-level software.
- Install corral
corral add github.com/ponylang/valbytes.git --version 0.6.2
corral fetch
to fetch your dependenciesuse "valbytes"
to include this packagecorral run -- ponyc
to compile your application
https://ponylang.github.io/valbytes
var ba = ByteArrays
ba = ba + "foo" + " " + "bar"
ba.string(0, 3) // "foo"
ba.take(3).string() // "foo"
ba.drop(4).string() // "bar"
for elem in ba.arrays().values() do
env.out.print(elem) // "foo", " ", "bar"
end