BSD Ports

devel/lua-vstruct 2.1.1 NetBSD

Binary data manipulation function

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, lua
Package size
15.2 KiB, 40.2 KiB installed

Description

VStruct is a Lua library to provide functions for manipulating binary data, in particular for reading binary files or byte buffers into Lua values and for writing Lua values back into files or buffers. Supported data types include:

  • signed and unsigned integers of arbitrary size
  • fixed and floating point numbers
  • fixed-size, length-prefixed, and null-terminated strings
  • booleans and bitmasks
  • bit-packed integers, booleans and bitmasks

In addition, the library supports seeking, alignment, and byte order controls, repetition, grouping of data into tables, and named fields.

Install

Binary package:

pkgin install lua51-vstruct

From pkgsrc:

cd /usr/pkgsrc/devel/lua-vstruct && make install clean

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
lua52-vstruct-2.1.1, lua53-vstruct-2.1.1, lua54-vstruct-2.1.1, lua55-vstruct-2.1.1