ponylang / valbytes

Dealing with multiple concatenated byte-arrays as if it were a single byte-array.

Home Page:https://ponylang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

valbytes

Library for dealing with concatenated byte arrays as if it was a single byte array.

Status

valbytes is beta-level software.

Installation

  • Install corral
  • corral add github.com/ponylang/valbytes.git --version 0.6.2
  • corral fetch to fetch your dependencies
  • use "valbytes" to include this package
  • corral run -- ponyc to compile your application

API Documentation

https://ponylang.github.io/valbytes

Example usage

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

About

Dealing with multiple concatenated byte-arrays as if it were a single byte-array.

https://ponylang.io

License:BSD 2-Clause "Simplified" License


Languages

Language:Pony 96.2%Language:Makefile 3.8%