IndexVirtual Memoryasmjit::JitAllocator::WriteScope

asmjit::JitAllocator::WriteScope Class Reference [¶]

Write scope can be used to create a single scope that is optimized for writing multiple spans.

Public Members

Members

Member Functions

Construction & Destruction

Accessors

Operations

JitAllocator& JitAllocator::WriteScope::allocator() constnodiscardnoexcept[¶]

Returns JitAllocator associated with this write scope.

VirtMem::CachePolicy JitAllocator::WriteScope::policy() constnodiscardnoexcept[¶]

Returns cache policy this write scope is using.

Error JitAllocator::WriteScope::write(
Span& span,
size_t offset,
const void* src,
size_t size
)noexcept[1/3][¶]

Similar to JitAllocator::write(span, offset, src, size), but under a write scope.

Error JitAllocator::WriteScope::write(
Span& span,
WriteFunc write_fn,
void* user_data
)noexcept[2/3][¶]

Similar to JitAllocator::write(span, write_fn, user_data), but under a write scope.

template<class Lambda>
Error JitAllocator::WriteScope::write(
Span& span,
Lambda&& lambda_fn
)noexcept[3/3][¶]

Similar to JitAllocator::write(span, <lambda>), but under a write scope.

Error JitAllocator::WriteScope::flush()noexcept[¶]

Flushes accumulated changes in this write scope.

JitAllocator& JitAllocator::WriteScope::_allocator[¶]

Link to the allocator.

WriteScopeData JitAllocator::WriteScope::_scope_data[¶]

Write scope data.