abstract class BitField(T)
- BitField(T)
- Reference
- Object
Defined in:
bitfield.crInstance Method Summary
-
#inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
Macro Summary
-
add_field(name, type, size, read_only, write_only)
Exists as a general way to add fields to the FIELDS list.
- bool(name, read_only = false, write_only = false)
- build_methods
- def_to_s
- enumeration(name, type, read_only = false, write_only = false)
- get_val(src, size, start)
- mask(size)
- num(name, size, read_only = false, write_only = false)
- set_val(dst, src, size, start)
- shifted_mask(size, start)
Instance Method Detail
def inspect(io : IO) : Nil
#
Description copied from class Reference
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Macro Detail
macro add_field(name, type, size, read_only, write_only)
#
Exists as a general way to add fields to the FIELDS list. Guarantees that the correct number of parameters are passed, at least.