struct
Bindgen::Graph::Struct::BitField
- Bindgen::Graph::Struct::BitField
- Struct
- Value
- Object
Overview
A bit-field of a lib struct or lib union. It is stored in the integer member
storage of type storage_type, which is unit_bits wide, at the bit
shift counted from its least significant bit. A signed bit-field has
the signed counterpart of the storage type as signed_type.
The getter_fun and setter_fun are the lib functions accessing it
through C++. Without them, the methods shift and mask storage
instead.
Defined in:
bindgen/graph/struct.crConstructors
Instance Method Summary
- #bool : Bool
- #clone
- #const : Bool
- #copy_with(name _name = @name, type_name _type_name = @type_name, storage _storage = @storage, storage_type _storage_type = @storage_type, unit_bits _unit_bits = @unit_bits, shift _shift = @shift, width _width = @width, signed_type _signed_type = @signed_type, bool _bool = @bool, const _const = @const, doc _doc = @doc, getter_fun _getter_fun = @getter_fun, setter_fun _setter_fun = @setter_fun)
- #doc : String | Nil
- #getter_fun : String | Nil
- #name : String
- #setter_fun : String | Nil
- #shift : Int64
- #signed_type : String | Nil
- #storage : String
- #storage_type : String
- #type_name : String
- #unit_bits : Int64
- #width : Int32
Constructor Detail
def self.new(name : String, type_name : String, storage : String, storage_type : String, unit_bits : Int64, shift : Int64, width : Int32, signed_type : String | Nil, bool : Bool, const : Bool, doc : String | Nil, getter_fun : String | Nil = nil, setter_fun : String | Nil = nil)
#
Instance Method Detail
def copy_with(name _name = @name, type_name _type_name = @type_name, storage _storage = @storage, storage_type _storage_type = @storage_type, unit_bits _unit_bits = @unit_bits, shift _shift = @shift, width _width = @width, signed_type _signed_type = @signed_type, bool _bool = @bool, const _const = @const, doc _doc = @doc, getter_fun _getter_fun = @getter_fun, setter_fun _setter_fun = @setter_fun)
#