Class: Contrast::AgentLib::InputTracing::CEvalResult

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

Overview

This class will be used to hold the return type from input tracings done with the AgentLib. Using the ManagedStruct will automatically call the release function, and since the memory is allocated by the AgentLib is should be GC also there.

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



46
47
48
# File 'lib/contrast/agent_lib/api/input_tracing.rb', line 46

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