fiddle
fiddle copied to clipboard
A libffi wrapper for Ruby.
@hsbt reported an issue with `--enable-bundled-libffi` [here](https://bugs.ruby-lang.org/issues/18034). I added a build that uses this flag, and that build is failing. I was able to reproduce @hsbt's issue. I think it's...
Does any documentation exist for Fiddle beyond the content at https://ruby-doc.org/stdlib-2.7.0/libdoc/fiddle/rdoc/Fiddle.html ? If not, is there interest in documentation contributions, and if so in what format/structure?
since c struct are contiguous in memory - have them implement the memoryview interface. That way we can use them with Fiddle::MemoryView
````ruby # Fiddle::MemoryView#slice(start, length) # Fiddle::MemoryView#slice(range) mv = Fiddle::MemoryView.new(memory_object) while mv puts mv[0] mv = mv.slice(1..-1) # returns a new MemoryView object with the same MemoryView#obj # that is no...
Hi fiddle developers. This is just an idea. A proposal to improve the parse_signature method. Background: I wanted to parse_signature recursively when the argument was a function (i.e. a function...
To fix GH-66. TODO: - [x] Write test of `CStruct#clone` - [x] Add `CStruct#initialize_copy` - [ ] Add `CStructEntity#initialize_copy` - [ ] Add test of `CUnion#clone` - [ ] Add...
## Fiddle ```ruby require 'fiddle/import' S = Fiddle::Importer.struct(["int i"]) a = S.malloc a.i = 10 b = a.clone b.i = 20 p a.i # 20 p b.i # 20 ```...
When running Ruby on Windows under Application Verifier (the Windows SDK dynamic verification toolset) with invalid handle checking enabled, ruby immediately triggers on Init_fiddle when trying to run irb. If...
I got the following error with the master branch of ruby/ruby repo and `--enable-bundled-liffi` option on Apple DTK(arm64, Big Sur beta6) https://gist.github.com/hsbt/c4a6cf7dfaf3839998378e9d55faa330 I have no idea to resolve it yet....
Include information about what an ABI is in docs regarding Fiddle Closure constructor, perhaps even include definitions below in `Fiddle::ABI`? ```c typedef enum ffi_abi { #if defined(X86_WIN64) FFI_FIRST_ABI = 0,...