Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/seferim-agi-g16 / bindings/ruby/README.md |
| Date | Not specified in source |
| Repository | Janady13/seferim-agi-g16 |
| Revision | 25f281b08b2f786f5a235b5abebfc39bf44d1044 |
| Branch | main |
| Path or archive member | bindings/ruby/README.md |
| Original SHA-256 | d7133e7c90d03c5d6e4ab5fb865239a6ee5e249b8133b3c68028c97a55f8457e |
| Git blob SHA | 35fbeec7a016e14deb8a1831fe95b44d3eb24643 |
| Reading-copy SHA-256 | d7133e7c90d03c5d6e4ab5fb865239a6ee5e249b8133b3c68028c97a55f8457e |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/seferim-agi-g16 / bindings/ruby/README.md | main | 25f281b08b2f786f5a235b5abebfc39bf44d1044 | Open original |
| Janady13/seferim-agi-g16 / bindings/ruby/README.md | copilot/update-code-libraries | 393af96a270295f79582b2b2a77bb49dd1a9a990 | Open original |
Recovered source transcript
Download complete source text ↓21 lines · 0.5 KB
Ruby FFI Stub
-------------
Use the `ffi` gem to map `g16_update`:
```ruby
require 'ffi'
module G16
extend FFI::Library
ffi_lib 'libg16_cabi'
class MetaState < FFI::Struct
layout :g, [:double, 17], :coherence, :double, :value, :double, :uncertainty, :double
end
class Inputs < FFI::Struct
layout :dx_norm, :double, :ed_error, :double, :utility, :double, :stability, :double
end
attach_function :g16_update, [:pointer, :pointer, :pointer, :pointer], :void
end
```