All Projects → zhuangsirui → Binpacker

zhuangsirui / Binpacker

Licence: mit
A binary stream packer and unpacker

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Binpacker

Upx Visual Studio
Compile UPX 3.96 and belong librarys on Visual Studio! Source also include LZMA, UCL and zlib ✒️
Stars: ✭ 96 (-40.74%)
Mutual labels:  packer
Packer Builder Arm
Packer plugin to build ARM images
Stars: ✭ 117 (-27.78%)
Mutual labels:  packer
Mstar Bin Tool
Scripts to manipulate Mstar firmware binaries (e.g. MstarUpgrade.bin, LetvUpgrade.bin etc)
Stars: ✭ 137 (-15.43%)
Mutual labels:  packer
Furikuri
(In dev)furikuri is framework for code protection
Stars: ✭ 103 (-36.42%)
Mutual labels:  packer
Packer Bare Metal
Building bare metal OS images with Packer, VirtualBox and qemu-img
Stars: ✭ 115 (-29.01%)
Mutual labels:  packer
Glueit
🎨 Simple SpriteSheet Tool
Stars: ✭ 119 (-26.54%)
Mutual labels:  packer
My Cheat Sheets
A place to keep all my cheat sheets for the complete development of ASIC/FPGA hardware or a software app/service.
Stars: ✭ 94 (-41.98%)
Mutual labels:  packer
Ops Cli
Ops - cli wrapper for Terraform, Ansible, Helmfile and SSH for cloud automation
Stars: ✭ 152 (-6.17%)
Mutual labels:  packer
Adfs2
Multi Vagrant environment with Active Directory
Stars: ✭ 117 (-27.78%)
Mutual labels:  packer
Packer
Package and deploy apps built with NodeGui to all platforms
Stars: ✭ 137 (-15.43%)
Mutual labels:  packer
Pyobfx
Python Obfuscator & Packer
Stars: ✭ 106 (-34.57%)
Mutual labels:  packer
Toc
A Table of Contents of all Gruntwork Code
Stars: ✭ 111 (-31.48%)
Mutual labels:  packer
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (-21.6%)
Mutual labels:  packer
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (-37.65%)
Mutual labels:  packer
Gf Cli
GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
Stars: ✭ 143 (-11.73%)
Mutual labels:  packer
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (-41.98%)
Mutual labels:  packer
Packer Windoze
Packer templates to create Windows vagrant box images
Stars: ✭ 117 (-27.78%)
Mutual labels:  packer
Infrastructure As Code Tutorial
Infrastructure As Code Tutorial. Covers Packer, Terraform, Ansible, Vagrant, Docker, Docker Compose, Kubernetes
Stars: ✭ 1,954 (+1106.17%)
Mutual labels:  packer
Packertemplates
Packer Templates for building Windows Operating Systems
Stars: ✭ 148 (-8.64%)
Mutual labels:  packer
Multi Env Deploy
Complete example of deploying complex web apps to AWS using Terraform, Ansible, and Packer
Stars: ✭ 132 (-18.52%)
Mutual labels:  packer

binpacker Build Status GoDoc Go Report Card

A binary packer and unpacker.

Install

go get github.com/zhuangsirui/binpacker

Examples

Packer

buffer := new(bytes.Buffer)
packer := binpacker.NewPacker(binary.BigEndian, buffer)
packer.PushByte(0x01)
packer.PushBytes([]byte{0x02, 0x03})
packer.PushUint16(math.MaxUint16)
// You can push data like this
buffer := new(bytes.Buffer)
packer := binpacker.NewPacker(binary.BigEndian, buffer)
packer.PushByte(0x01).PushBytes([]byte{0x02, 0x03}).PushUint16(math.MaxUint16)
packer.Error() // Make sure error is nil

Unpacker

Example data

buffer := new(bytes.Buffer)
packer := binpacker.NewPacker(binary.BigEndian, buffer)
unpacker := binpacker.NewUnpacker(binary.BigEndian, buffer)
packer.PushByte(0x01)
packer.PushUint16(math.MaxUint16)
var val1 byte
var val2 uint16
var err error
val1, err = unpacker.ShiftByte()
val2, err = unpacker.ShiftUint16()
var val1 byte
var val2 uint16
var err error
unpacker.FetchByte(&val1).FetchUint16(&val2)
unpacker.Error() // Make sure error is nil
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].