class Safec::Macros::SafeCStructMacroExample::Free
- Safec::Macros::SafeCStructMacroExample::Free
- Reference
- Object
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:25doc/macros.cr:27
Instance Method Summary
- #free(p)
-
#null?
Tests if this pointer is null.
-
#p : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct)
Returns this C pointer.
-
#to_unsafe : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct)
Returns this C pointer.
-
#value
Return the struct value pointed by this pointer.
Instance methods inherited from module Safec::Macros::SafeCStructMacroExample::AsFree
free(p : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct))
free
Instance Method Detail
def to_unsafe : Pointer(Safec::Macros::SafeCStructMacroExample::C::Struct)
#
Returns this C pointer.