class Safec::Macros::SafeCPointerMacroExample::Free

Overview

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

This class was automatically defined by the Safec library.

Included Modules

Defined in:

doc/macros.cr:7
doc/macros.cr:9

Instance Method Summary

Instance methods inherited from module Safec::Macros::SafeCPointerMacroExample::AsFree

free(p : Pointer(Void)) free

Instance Method Detail

def free(p) #

[View source]
def null? #

Tests if this pointer is null.


[View source]
def p : Pointer(Void) #

Returns this C pointer.


[View source]
def to_unsafe : Pointer(Void) #

Returns this C pointer.


[View source]