class Safec::Macros::SafeCStructMacroExample::Unfree

Overview

Represents a C pointer to memory that is got free on GC finalize.

This class was automatically defined by the Safec library.

Defined in:

doc/macros.cr

Instance Method Summary

Instance Method Detail

def null? #

Tests if this pointer is null.


[View source]
def p : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct) #

Returns this C pointer.


[View source]
def to_unsafe : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct) #

Returns this C pointer.


[View source]
def value #

Return the struct value pointed by this pointer.


[View source]