docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct UnsafeUntypedBufferAccessor

    Allow untyped access to buffers data in a chunk. The use of untyped accessor is in general not recommended and should be exploited only in very specific use case scenario.

    Namespace: Unity.Entities.LowLevel.Unsafe
    Assembly: Unity.Entities.dll
    Syntax
    public struct UnsafeUntypedBufferAccessor

    Properties

    Name Description
    ElementSize

    The size (in bytes) of a single buffer element.

    Length

    The number of buffers in the chunk.

    Methods

    Name Description
    GetBufferCapacity(int)

    Gets the current capacity of the buffer at the given index in the chunk

    GetBufferLength(int)

    Gets the current size of the buffer at the given index in the chunk

    GetUnsafePtr(int)

    Gets the unsafe pointer to buffer elements at the given index in the chunk

    GetUnsafePtrAndLength(int, out int)

    The unsafe pointer and length for the buffer at the given index in the chunk

    GetUnsafeReadOnlyPtr(int)

    Gets the read-only unsafe pointer to buffer elements at the given index in the chunk

    GetUnsafeReadOnlyPtrAndLength(int, out int)

    The read-only unsafe pointer and length for the buffer at the given index in the chunk

    ResizeUninitialized(int, int)

    Increases the buffer capacity and length of the buffer associated to the entity at the given index in the chunk

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)