Installs the provided default specs including writing the spec file
Install the provided default specs
private functions
Returns the source encoding name as a string.
Returns the source encoding name as a string.
Parses a C struct’s members
Example:
require 'fiddle/import' include Fiddle::CParser #=> Object parse_struct_signature(['int i', 'char c']) #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]] parse_struct_signature(['char buffer[80]']) #=> [[[Fiddle::TYPE_CHAR, 80]], ["buffer"]]
@return the next sibling (nil if unset)
@return the previous sibling (nil if unset)
Find
(and return) first subnode (recursively) for which the block evaluates to true. Returns nil
if none was found.
Returns the position that self
holds in its parent’s array, indexed from 1.
Sets IO
operations on io
to be non-blocking
Sets IO
operations on io
to be non-blocking