module Crul::Safe::Easy
Extended Modules
- Safec::Macros
Defined in:
lib/safe/easy.crClass Method Summary
-
.free(p : Pointer(C::Curl))
Creates a new
Freeinstance initialized with the p pointer. -
.null
Returns an
Unfreeinstance initialized with a null pointer. -
.unfree(p : Pointer(C::Curl))
Creates a new
Unfreeinstance initialized with the p pointer.
Macro Summary
-
safe_c_pointer(klass, free = true)
Defines the classes for wrapping C pointers.
-
safe_c_struct(klass, free = true)
Defines the classes for wrapping C structs.
Class Method Detail
Creates a new Free instance initialized with the p pointer.
This class was automatically defined by the Safec library.
Creates a new Unfree instance initialized with the p pointer.
This class was automatically defined by the Safec library.
Macro Detail
Defines the classes for wrapping C pointers.
Defines the Free and Unfree classes for wrapping C pointers.
To define the Free class, you must implement the AsFree#free method to deallocate memory.
To define the Unfree class only, set free falsey.
This macro was automatically defined by the Safec library.
Defines the classes for wrapping C structs.
Defines the Value, Free and Unfree classes for wrapping C structs.
To define the Free class, you must implement the AsFree#free method to deallocate memory.
To define the Value and Unfree classes only, set free falsey.
This macro was automatically defined by the Safec library.