Core.Builtins
Builtin Function APIs
다음의 내장 함수 API는 불안정한 것으로 간주되지만, Julia 프로그램의 능력과 동작을 정의하는 기본 정의를 제공합니다. 이들은 일반적으로 더 높은 수준의 일반 API를 통해 접근됩니다.
Core.memoryrefnew
— FunctionCore.memoryrefnew(::GenericMemory)
Core.memoryrefnew(::GenericMemoryRef, index::Int, [boundscheck::Bool])
GenericMemory
에 대한 GenericMemoryRef
를 반환합니다. memoryref
를 참조하세요.
이 함수는 Julia 1.11 이상이 필요합니다.
Core.memoryrefoffset
— FunctionCore..memoryrefoffset(::GenericMemoryRef)
MemoryRef
를 구성하는 데 사용된 오프셋 인덱스를 반환합니다. memoryref
를 참조하세요.
이 함수는 Julia 1.11 이상이 필요합니다.
Core.memoryrefget
— FunctionCore.memoryrefget(::GenericMemoryRef, ordering::Symbol, boundscheck::Bool)
MemoryRef
에 저장된 값을 반환하며, Memory
가 비어 있으면 BoundsError
를 발생시킵니다. ref[]
를 참조하세요. 지정된 메모리 순서는 isatomic
매개변수와 호환되어야 합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
Core.memoryrefset!
— FunctionCore.memoryrefset!(::GenericMemoryRef, value, ordering::Symbol, boundscheck::Bool)
MemoryRef
에 값을 저장하며, Memory
가 비어있으면 BoundsError
를 발생시킵니다. ref[] = value
를 참조하세요. 지정된 메모리 순서는 isatomic
매개변수와 호환되어야 합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
Core.memoryref_isassigned
— FunctionCore.memoryref_isassigned(::GenericMemoryRef, ordering::Symbol, boundscheck::Bool)
MemoryRef
에 저장된 값이 있는지 여부를 반환하며, Memory
가 비어 있으면 false를 반환합니다. isassigned(::Base.RefValue)
, Core.memoryrefget
를 참조하십시오. 지정된 메모리 순서는 isatomic
매개변수와 호환되어야 합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
Core.memoryrefswap!
— FunctionCore.memoryrefswap!(::GenericMemoryRef, value, ordering::Symbol, boundscheck::Bool)
원자적으로 MemoryRef
값을 동시에 가져오고 설정하는 작업을 수행합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
또한 swapproperty!
및 Core.memoryrefset!
를 참조하십시오.
Core.memoryrefmodify!
— FunctionCore.memoryrefmodify!(::GenericMemoryRef, op, value, ordering::Symbol, boundscheck::Bool) -> Pair
원자적으로 MemoryRef
값을 가져오고 설정하는 작업을 수행하며, 함수 op
를 적용한 후에 수행됩니다.
이 함수는 Julia 1.11 이상이 필요합니다.
또한 modifyproperty!
및 Core.memoryrefset!
를 참조하십시오.
Core.memoryrefreplace!
— FunctionCore.memoryrefreplace!(::GenericMemoryRef, expected, desired,
success_order::Symbol, fail_order::Symbol=success_order, boundscheck::Bool) -> (; old, success::Bool)
원자적으로 MemoryRef
값을 가져오고 조건부로 설정하는 작업을 수행합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
또한 replaceproperty!
및 Core.memoryrefset!
를 참조하십시오.
Core.memoryrefsetonce!
— FunctionCore.memoryrefsetonce!(::GenericMemoryRef, value,
success_order::Symbol, fail_order::Symbol=success_order, boundscheck::Bool) -> success::Bool
주어진 값으로 MemoryRef
를 설정하는 작업을 원자적으로 수행하며, 이전에 설정되지 않은 경우에만 수행합니다.
이 함수는 Julia 1.11 이상이 필요합니다.
또한 setpropertyonce!
및 Core.memoryrefset!
를 참조하십시오.
Core.Intrinsics.atomic_pointerref
— FunctionCore.Intrinsics.atomic_pointerref(pointer::Ptr{T}, order::Symbol) --> T
이 함수는 Julia 1.7 이상이 필요합니다.
unsafe_load
를 참조하세요.
Core.Intrinsics.atomic_pointerset
— FunctionCore.Intrinsics.atomic_pointerset(pointer::Ptr{T}, new::T, order::Symbol) --> pointer
이 함수는 Julia 1.7 이상이 필요합니다.
unsafe_store!
를 참조하세요.
Core.Intrinsics.atomic_pointerswap
— FunctionCore.Intrinsics.atomic_pointerswap(pointer::Ptr{T}, new::T, order::Symbol) --> old
이 함수는 Julia 1.7 이상이 필요합니다.
unsafe_swap!
를 참조하세요.
Core.Intrinsics.atomic_pointermodify
— FunctionCore.Intrinsics.atomic_pointermodify(pointer::Ptr{T}, function::(old::T,arg::S)->T, arg::S, order::Symbol) --> old
이 함수는 Julia 1.7 이상이 필요합니다.
unsafe_modify!
를 참조하세요.
Core.Intrinsics.atomic_pointerreplace
— FunctionCore.Intrinsics.atomic_pointerreplace(pointer::Ptr{T}, expected::Any, new::T, success_order::Symbol, failure_order::Symbol) --> (old, cmp)
이 함수는 Julia 1.7 이상이 필요합니다.
unsafe_replace!
를 참조하세요.
Core.get_binding_type
— FunctionCore.get_binding_type(module::Module, name::Symbol)
모듈 module
에서 바인딩 name
의 선언된 타입을 가져옵니다.
이 함수는 Julia 1.9 이상이 필요합니다.
Core.set_binding_type!
— FunctionCore.set_binding_type!(module::Module, name::Symbol, [type::Type])
모듈 module
에서 바인딩 name
의 선언된 타입을 type
으로 설정합니다. 바인딩이 이미 type
과 동등하지 않은 타입을 가지고 있는 경우 오류가 발생합니다. type
인자가 없으면 바인딩 타입이 설정되지 않은 경우 Any
로 설정하지만, 오류는 발생하지 않습니다.
이 함수는 Julia 1.9 이상이 필요합니다.
Core.IntrinsicFunction
— TypeCore.IntrinsicFunction <: Core.Builtin <: Function
Core.IntrinsicFunction
함수는 Julia 프로그램의 능력과 동작을 정의하는 기본 원시 기능을 정의합니다.
Core.Intrinsics
— ModuleCore.Intrinsics
Core.Intrinsics
모듈은 Core.IntrinsicFunction
객체를 포함합니다.
Core.IR
— ModuleCore.IR
Core.IR
모듈은 IR 객체 모델을 내보냅니다.