struct

Bindgen::Graph::Struct::BitField

Inherits Struct < Value < Object

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.

Constructors

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)
Source

Instance methods

bool
clone
Source
const
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)
Source
doc
getter_fun
name
setter_fun
shift
signed_type
storage
storage_type
type_name
unit_bits
width