binio

Package for packing and unpacking byte data

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install binio
choosenim install binio
git clone https://github.com/Riderfighter/binio

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
binio - - - - - - -

Source

Repository https://github.com/Riderfighter/binio
Homepage https://github.com/Riderfighter/binio
Registry Source nimble_official

README

Important

This package is a direct port of Zeroeh's binio for golang to nim.

About

A package to write structured data to a bytes buffer, which is a technique commonly used in games where text-based protocols such as xml or json carry too much bulk to efficiently transfer data over the wire. The package is similar to Google's protocol buffers in that it is meant to be language agnostic with its intended function, but cuts out the overhead of using protocol buffers and compiling templates for each type.

Usage

Refer to example/example.nim for usage and examples.

Notes

The package was originally developed to be used for a specific game. You may have to change some of the functions to suit your individual needs.

A dependency for this package is struct which can be gotten directly from nimble. For example:

nimble install struct