Module: Asherah::Native
- Extended by:
- FFI::Library
- Defined in:
- lib/asherah/native.rb
Defined Under Namespace
Classes: AsherahBuffer
Constant Summary collapse
- LIBRARY_PATH =
resolve_library- LOG_TRACE =
Internal: integer constants that mirror the C ABI severity/event codes in hooks.rs. The public Ruby API exposes them as
Logger::Severityvalues andSymboltypes respectively, so callers should never need to reference these directly. 0- LOG_DEBUG =
1- LOG_INFO =
2- LOG_WARN =
3- LOG_ERROR =
4- METRIC_ENCRYPT =
0- METRIC_DECRYPT =
1- METRIC_STORE =
2- METRIC_LOAD =
3- METRIC_CACHE_HIT =
4- METRIC_CACHE_MISS =
5- METRIC_CACHE_STALE =
6
Class Method Summary collapse
Class Method Details
.last_error ⇒ Object
139 140 141 142 |
# File 'lib/asherah/native.rb', line 139 def self.last_error ptr = ptr.null? ? "unknown error" : ptr.read_string end |