About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 140
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Joel VanderWerf (3 other programs)
See full specifications

scripts default iconBitStruct for Complete applications Publisher's description

This Ruby class contains packed binary data stored using Ruby strings

Its main use is in defining network protocol packets used for network protocols (IP).


For .gem: Run the command gem install bit-struct
For .tgz, unpack and run these commands:
ruby install.rb config
ruby install.rb setup
ruby install.rb install

Here are some key features of "BitStruct":

В· Extensible with user-defined field classes.
В· Fields are fully introspectable and can be defined programmatically.
В· BitStruct.describe prints out documentation of all the fields of a BitStruct subclass, based on declarations. This is useful for communicating with developers who are not using ruby, but need to talk the same protocols.
В· Fields are inherited by subclasses.
В· BitStruct#inspect and BitStruct#inspect_detailed can be used for prettified display of contents.
В· BitStruct inherits from String, so all the usual methods are available, and string-sharing (copy-on-write) is in effect.
В· Easy access to a "prototype" instance of each BitStruct subclass, from which all instances of that subclass are initialized as a copy (in the absence of other initialization parameters, such as a hash, a string, or a block). See BitStruct.initial_value, and BitStruct#initialize.
В· Easy conversion to and from hashes, using BitStruct#to_h and BitStruct.new.
В· BitStructs can persist using Marshal (a BitStruct is after all just a string) or using YAML (with human readable representation of the fields).
В· Includes tests, examples, and rdoc API documentation.


В· Fields that are not aligned on byte boundaries may cross no more than two bytes boundaries.
В· No variable length fields (except the rest field).

What's New in This Release:

В· Packaged as a gem using bones.
В· Added nest fields defined with blocks.
В· Vector length may be specified as argument or :length option.

System Requirements:

Program Release Status: Major Update
Program Install Support: Install Only

BitStruct for Complete applications Tags:

Click on a tag to find related softwares

Is BitStruct for Complete applications your software?

Manage your software

Most Popular

scripts default icon Facebook comments counter (Scripts) 1.0
This This plugin is addon plugin to the plugin "Facebook Comments for WordPress".
scripts default icon Net::Flickr (Scripts) 0.0.1
Net::Flickr provides an elegant, Ruby-fied implementation of Flickr's REST API.
scripts default icon Lipsiadmin (Scripts) REL 5.1.2
Lipsiadmin is a new revolutionary admin for your projects.
scripts default icon QuNet::NNTP Client Library (Scripts) 0.0.2
Retrieve and post Usenet news articles via NNTP, the Network News Transfer Protocol
scripts default icon LED Sign Manager (Scripts) Angie
A Ruby On Rails web application for the management of Betabrite and Alpha LED signs.