All Projects → Bit-Wasp → buffertools-php

Bit-Wasp / buffertools-php

Licence: other
Toolbox for working with binary and hex data. Similar to NodeJS Buffer.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to buffertools-php

NALib
General purpose C sourcecode collection
Stars: ✭ 16 (-73.33%)
Mutual labels:  binary, buffer
SwiftRadix
Easily convert integers to binary/hex/octal strings and back again with clean functional syntax.
Stars: ✭ 34 (-43.33%)
Mutual labels:  hex, binary
sirdez
Glorious Binary Serialization and Deserialization for TypeScript.
Stars: ✭ 20 (-66.67%)
Mutual labels:  binary, buffer
Corrode
A batteries-included library for reading binary data.
Stars: ✭ 116 (+93.33%)
Mutual labels:  binary, buffer
Heksa
CLI hex dumper with colors
Stars: ✭ 133 (+121.67%)
Mutual labels:  hex, binary
Ethereumjs Util
Project is in active development and has been moved to the EthereumJS monorepo.
Stars: ✭ 534 (+790%)
Mutual labels:  hex, buffer
Bytearray.js
An equivalent to Actionscript 3's ByteArray for Javascript with AMF0 and AMF3 support.
Stars: ✭ 100 (+66.67%)
Mutual labels:  binary, buffer
hext
Markup language and tool for generating binary files
Stars: ✭ 23 (-61.67%)
Mutual labels:  hex, binary
literate-binary
Integrate handcrafted binary and documentation
Stars: ✭ 37 (-38.33%)
Mutual labels:  hex, binary
Binary-Calculator-JavaScript
📱 A handy Calculator for Binary operations, that works on all Devices 📱 💻 🖥 | ⛓ https://play.google.com/store/apps/details?id=com.binarycalculator.ayidouble.binarycalculator.app ⛓
Stars: ✭ 45 (-25%)
Mutual labels:  binary
EmbeddedRingBuffer
A ring buffer designed to work with embedded devices, does not use heap allocations.
Stars: ✭ 47 (-21.67%)
Mutual labels:  buffer
HexMate
High-performance hex encoding and decoding for .NET
Stars: ✭ 36 (-40%)
Mutual labels:  hex
data-encoding
Efficient and customizable data-encoding functions in Rust
Stars: ✭ 92 (+53.33%)
Mutual labels:  hex
RingBuffer
Classic ringbuffer with optional Stream interface
Stars: ✭ 53 (-11.67%)
Mutual labels:  buffer
ProceduralHexTerrainGenerator
Procedural Hex Terrain Generator
Stars: ✭ 20 (-66.67%)
Mutual labels:  hex
content inspector
Fast inspection of binary buffers to guess/determine the type of content
Stars: ✭ 28 (-53.33%)
Mutual labels:  binary
ColorMinePortable
ColorMinePortable
Stars: ✭ 37 (-38.33%)
Mutual labels:  hex
binary
Clojure API for binary format I/O using java's stream apis
Stars: ✭ 67 (+11.67%)
Mutual labels:  binary
binary.com-bot
Scripts for using on Binary.com Bots.
Stars: ✭ 60 (+0%)
Mutual labels:  binary
CuVec
Unifying Python/C++/CUDA memory: Python buffered array ↔️ `std::vector` ↔️ CUDA managed memory
Stars: ✭ 73 (+21.67%)
Mutual labels:  buffer

Buffertools

This library provides a Buffer and Parser class to make dealing with binary data in PHP easier. Templates extend this by offering a read/write interface for larger serialized structures.

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License

Requirements:

  • PHP 7.0+
  • Composer
  • ext-gmp

Installation

You can install this library via Composer: composer require bitwasp/buffertools

Examples

Buffer's are immutable classes to store binary data. Buffer::hex can be used to initialize from hex Buffer::int can be used to initialize from a positive decimal integer (int|string)

Buffer's main methods are:

  • getBinary()
  • getHex()
  • getInt()

Parser will read Buffers. Parser's main methods are:

  • readBytes()
  • writeBytes()
  • readArray()
  • writeArray()

In most cases, the interface offered by Parser should not be used directly. Instead, Templates expose read/write access to larger serialized structures.

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].