Class: Contrast::AgentLib::InputTracing::QuerySinkResult

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/contrast/agent_lib/api/input_tracing.rb

Overview

Struct could be used as parameter to C functions, and also to save the return data. This is like specifying a type for pointer.

Expected struct: pub struct CCheckQuerySinkResult

pub start_index: u64,
pub end_index: u64,
pub boundary_overrun_index: u64,
pub input_boundary_index: u64,

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object

when QuerySinkResult object gets out of scope it will be GCed.



34
35
36
# File 'lib/contrast/agent_lib/api/input_tracing.rb', line 34

def self.release ptr
  Contrast::AgentLib::InputTracing.dl__free_check(ptr)
end