struct Novika::FFI::StructFieldDesc
  
  - Novika::FFI::StructFieldDesc
- Struct
- Value
- Object
Overview
Holds the description of a struct field: its id (purely for
convenience), type (one of ForeignTypes), and, most
importantly, offset.
Defined in:
novika/ffi.crConstructors
Instance Method Summary
- #clone
- #copy_with(id _id = @id, type _type = @type, offset _offset = @offset)
- 
        #fetch!(base : Pointer(Void)) : ForeignValue
        
          offset, assuming base points to the start of the struct this field is a member of. 
- #id : String
- #offset : UInt64
- 
        #put!(base : Pointer(Void), value : ForeignValue)
        
          Writes value at base plus this field's offset, assuming base points to the start of the struct this field is a member of. 
- #to_s(io)
- #type : ForeignType
Constructor Detail
Instance Method Detail
        
        def fetch!(base : Pointer(Void)) : ForeignValue
        #
      
      
        offset, assuming base points to the start of the struct this field is a member of.
The latter is not enforced; therefore, this method is considered unsafe.
        
        def put!(base : Pointer(Void), value : ForeignValue)
        #
      
      
        Writes value at base plus this field's offset, assuming base points to the start of the struct this field is a member of.
The latter is not enforced; therefore, this method is considered unsafe.