docs.unity.cn
    Show / Hide Table of Contents

    Constructor Scratchpad

    Scratchpad(Int32, Int32, Boolean, Int32)

    Create a Scratchpad.

    Declaration
    [ExcludeFromBurstCompatTesting("Accesses managed delegates")]
    public Scratchpad(int numScratchpadAllocators, int initialSizeInBytes = 32768, bool isGlobal = false, int globalIndex = 0)
    Parameters
    Type Name Description
    Int32 numScratchpadAllocators

    The number of ScratchpadAllocators the created Scratchpad should contain.

    Int32 initialSizeInBytes

    The initial size of the Scratchpad in bytes. Set to 32,768 by default.

    Boolean isGlobal

    Flag indicating if the allocator is a global allocator.

    Int32 globalIndex

    Base index into the global function table of the allocator to be created.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023