Registry / serialization / bit-struct

bit-struct

JSON →
library0.15.0rbrubygemsunverified

Library for packed binary data stored in Ruby Strings, useful for accessing fields in network packets and binary files.

gem install bit-struct
INSTALL
IMPORT
SIG · BIT-STRUCT
B
bit-struct
serializationrubyv0.15.0
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.

BitStruct
require 'bit-struct'

Define and access a binary packet structure.

require 'bit-struct' class MyPacket < BitStruct unsigned :field1, 8 end packet = MyPacket.new([0x42].pack('C')) packet.field1
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.15.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
bit-struct — gem install bit-struct · libregistry