RAA - packstruct

packstruct / 0.5.0

Short description: Wraps pack and unpack to make binary struct-like structures
Category: Library/Datastructure
Status: alpha
Created: 2004-07-06 10:26:20 GMT
Last update: 2004-07-06 10:26:20 GMT
Owner: Aredridel (Projects of this owner)
Homepage: http://theinternetco.net/projects/ruby/packstruct
Download: http://theinternetco.net/projects/ruby/packstruct
License: Ruby's
Dependency:
None
Description:

Allows creation of structures in an easy fashion:

class Point < PackStruct
field :x, 'L'
field :y, 'L'
end

Point.unpack("\1\0\0\0\5\0\0\0") # => <Point:#DEADBEEF @x = 1, @y = 5>

Edit this project (for project owner)

back to RAA top