class Rstruct::PackedType
Attributes
format[R]
sizeof[R]
Public Class Methods
new(name, size, format, opts={}, &block)
click to toggle source
Calls superclass method
# File lib/rstruct/base_types/packed_type.rb, line 66 def initialize(name, size, format, opts={}, &block) @sizeof = size @format = format @groupable = true super(name, opts, &block) end
Public Instance Methods
instance(val=nil)
click to toggle source
# File lib/rstruct/base_types/packed_type.rb, line 73 def instance(val=nil) val end