Engee 文档

核心。建造工程

该页面正在翻译中。

嵌入式函数的API

以下内置函数Api被认为是不稳定的,但它们包含定义Julia程序功能和行为的基本定义。 它们通常通过更高级别的通用API访问。

Core.memoryrefnew(::GenericMemory)
Core.memoryrefnew(::GenericMemoryRef, index::Int, [boundscheck::Bool])

为"GenericMemory"返回"GenericMemoryRef"。 请参阅描述 'memoryref'

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core..memoryrefoffset(::GenericMemoryRef)

返回用于创建`MemoryRef’的偏移量索引。 请参阅描述 'memoryref'

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.memoryrefget(::GenericMemoryRef, ordering::Symbol, boundscheck::Bool)

返回’MemoryRef’引用存储的值,如果`Memory`对象为空,则发出`BoundsError'。 请参阅`ref[]`的描述。 指定的内存顺序必须与’isatomic`参数兼容。

兼容性:Julia1.11

此功能需要Julia至少1.11的版本。

Core.memoryrefset!(::GenericMemoryRef, value, ordering::Symbol, boundscheck::Bool)

通过引用’MemoryRef’保存值,如果`Memory`对象为空,则发出`BoundsError'。 请参阅’ref[]=value’的描述。 指定的内存顺序必须与’isatomic`参数兼容。

兼容性:Julia1.11

此功能需要Julia至少1.11的版本。

Core.memoryref_isassigned(::GenericMemoryRef, ordering::Symbol, boundscheck::Bool)

确定值是否由’MemoryRef’引用存储,如果’Memory’对象为空,则返回false。 请参阅描述 'isassigned(::Base.RefValue)', '核心。memoryrefget'。 指定的内存顺序必须与’isatomic`参数兼容。

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.memoryrefswap!(::GenericMemoryRef, value, ordering::Symbol, boundscheck::Bool)

原子地执行同时获取和设置’MemoryRef’值的操作。

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.memoryrefmodify!(::GenericMemoryRef, op, value, ordering::Symbol, boundscheck::Bool) -> Pair

在应用`op`函数后,原子地执行操作以获取和设置’MemoryRef`的值。

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.memoryrefreplace!(::GenericMemoryRef, expected, desired,
                       success_order::Symbol, fail_order::Symbol=success_order, boundscheck::Bool) -> (; old, success::Bool)

原子地执行操作以获得’MemoryRef’值及其条件赋值。

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.memoryrefsetonce!(::GenericMemoryRef, value,
                       success_order::Symbol, fail_order::Symbol=success_order, boundscheck::Bool) -> success::Bool

原子地执行将指定值赋给`MemoryRef`的操作,如果它尚未设置。

兼容性:Julia1.11

此功能要求Julia的版本不低于1.11。

Core.Intrinsics.atomic_pointerref(pointer::Ptr{T}, order::Symbol) --> T
兼容性:Julia1.7

此功能需要Julia至少1.7的版本。

请参阅说明 'unsafe_load'

Core.Intrinsics.atomic_pointerset(pointer::Ptr{T}, new::T, order::Symbol) --> pointer
兼容性:Julia1.7

此功能需要Julia至少1.7的版本。

请参阅说明 'unsafe_store!`.

Core.Intrinsics.atomic_pointerswap(pointer::Ptr{T}, new::T, order::Symbol) --> old
兼容性:Julia1.7

此功能需要Julia至少1.7的版本。

请参阅说明 'unsafe_swap!`.

Core.Intrinsics.atomic_pointermodify(pointer::Ptr{T}, function::(old::T,arg::S)->T, arg::S, order::Symbol) --> old
兼容性:Julia1.7

此功能需要Julia至少1.7的版本。

请参阅说明 'unsafe_modify!`.

Core.Intrinsics.atomic_pointerreplace(pointer::Ptr{T}, expected::Any, new::T, success_order::Symbol, failure_order::Symbol) --> (old, cmp)
兼容性:Julia1.7

此功能需要Julia至少1.7的版本。

请参阅说明 'unsafe_replace!`.

Core.get_binding_type(module::Module, name::Symbol)

从模块"模块"中获取声明的绑定类型"名称"。

兼容性:Julia1.9

此功能需要至少1.9的Julia版本。

Core.set_binding_type!(module::Module, name::Symbol, [type::Type])

将`模块`中声明的绑定类型`name`设置为’type'。 如果绑定已经具有不等同于’type’的类型,则返回错误。 如果缺少"type"参数,则如果尚未设置绑定类型,则将其设置为"Any",但不会返回错误。

兼容性:Julia1.9

此功能需要至少1.9的Julia版本。

Core.IntrinsicFunction <: Core.Builtin <: Function

的’核心’功能。IntrinsicFunction’定义了定义Julia程序功能和行为的基本原语。

Core.Intrinsics

的’核心’模块。Intrinsics’包含’Core’对象。IntrinsicFunction`。

Core.IR

模块`Core.IR '导出IR对象模型。