Registry / serialization / bindata

bindata

JSON →
library2.5.1rbrubygemsunverified

BinData provides a declarative way to read and write binary file formats in Ruby.

gem install bindata
INSTALL
IMPORT
SIG · BINDATA
B
bindata
serializationrubyv2.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BinData
require 'bindata'

Define and read a binary structure with BinData.

require 'bindata' class MyStruct < BinData::Record uint8 :length string :data, read_length: :length end io = StringIO.new("\x05hello") obj = MyStruct.read(io) puts obj.data
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.5.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Meta
1
Amazon
1
OpenAI (training)
1
Resources
bindata — gem install bindata · libregistry