docs.unity.cn
    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
    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(Int32)

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

    GetBufferLength(Int32)

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

    GetUnsafePtr(Int32)

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

    GetUnsafePtrAndLength(Int32, out Int32)

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

    GetUnsafeReadOnlyPtr(Int32)

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

    GetUnsafeReadOnlyPtrAndLength(Int32, out Int32)

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

    ResizeUninitialized(Int32, Int32)

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023