Search Results for

    Show / Hide Table of Contents

    Class ArenaAllocator

    Allocator that uses pages for stack-based allocs without freeing memory during it's lifetime.

    Inheritance
    ArenaAllocator
    Assembly: FlaxEngine.dll
    File: Engine/Core/Memory/ArenaAllocation.h
    Syntax
    public class ArenaAllocator

    Constructors

    ~ArenaAllocator()

    Declaration
    public ~ArenaAllocator()

    ArenaAllocator(int32 pageSizeBytes=1024* 1024)

    Declaration
    public ArenaAllocator(int32 pageSizeBytes=1024* 1024)
    Parameters
    int32 pageSizeBytes

    Methods

    Allocate(uint64 size, uint64 alignment=1)

    Declaration
    public void* Allocate(uint64 size, uint64 alignment=1)
    Parameters
    uint64 size

    uint64 alignment

    Returns
    void

    ClearDelete(Array<Value, Allocator>& collection)

    Declaration
    public static void ClearDelete(Array<Value, Allocator>& collection)
    Parameters
    Array<Value, Allocator> collection

    Type Parameters
    typename Value

    typename Allocator

    ClearDelete(Dictionary<Key, Value, Allocator>& collection)

    Declaration
    public static void ClearDelete(Dictionary<Key, Value, Allocator>& collection)
    Parameters
    Dictionary<Key, Value, Allocator> collection

    Type Parameters
    typename Key

    typename Value

    typename Allocator

    Free()

    Declaration
    public void Free()

    New(Args&& ...args)

    Declaration
    public T* New(Args&& ...args)
    Parameters
    Args... args

    Returns
    T

    Type Parameters
    class T

    Args

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat