| Class | CStruct |
| In: |
lib/cstruct/utils.rb
lib/cstruct/field.rb lib/cstruct/cstruct.rb |
| Parent: | Object |
CStruct is a simulation of the C language‘s struct. Its main purpose is to manipulate binary-data conveniently in Ruby.
| VERSION | = | "1.0.1" | version |
| size | -> | __size__ |
| unsigned_8byte | -> | uint64 |
| unsigned_4byte | -> | uint32 |
| unsigned_2byte | -> | uint16 |
| unsigned_1byte | -> | uint8 |
| unsigned_1byte | -> | uchar |
| signed_8byte | -> | int64 |
| signed_4byte | -> | int32 |
| signed_2byte | -> | int16 |
| signed_1byte | -> | int8 |
| signed_1byte | -> | char |
| owner | [RW] |