Sha256: 2da426d8224703e4eed261d3abbb158d26d98c4398768f579db5fd6fe3e9454f
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
module GirFFI module FFIExt module Pointer def to_ptr self end def to_value self end def to_object # TODO: Move implementation here. ArgHelper.object_pointer_to_object self end # XXX: int32 is size 4, bool is size 1. Why u no crash? def put_bool offset, value int = value ? 1 : 0 put_int32 offset, int end # XXX: int32 is size 4, bool is size 1. Why u no crash? def get_bool offset int = get_int32 offset return (int != 0) end end end end FFI::Pointer.send :include, GirFFI::FFIExt::Pointer
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.6.5 | lib/gir_ffi/ffi_ext/pointer.rb |