module Carbon::Core::Pointer

Defines the pointer type and functions for the Carbon Core library.

@api private

Constants

PTYPE

The pointer type name. This is kept here to provide a shortcut to the pointer type.

@return [Concrete::Type]

PTYPEGEN

The pointer generic type name. This is kept here to provide a shortcut.

@return [Concrete::Type]

Public Class Methods

define_pointer() click to toggle source

Defines the pointer type and all of the pointer functions.

@see define_pointer_type @see .define_pointer_functions @return [self]

# File lib/carbon/core/pointer.rb, line 39
def self.define_pointer
  define_pointer_type
  define_pointer_functions
  self
end
define_pointer_functions() click to toggle source

Defines all of the pointer

# File lib/carbon/core/pointer.rb, line 46
def self.define_pointer_functions
  define_math_functions
  define_cast_functions
  define_memory_functions
  define_access_functions
end