Class BlobStringExtensions | Entities | 0.8.0-preview.8
docs.unity.cn
    Show / Hide Table of Contents

    Class BlobStringExtensions

    Extensions that allow the creation of BlobString instances by a BlobBuilder.

    Inheritance
    Object
    BlobStringExtensions
    Namespace: Unity.Entities
    Syntax
    public static class BlobStringExtensions

    Methods

    AllocateString(ref BlobBuilder, ref BlobString, String)

    Allocates memory to store the string in a blob asset and copies the string data into it.

    Declaration
    public static void AllocateString(this ref BlobBuilder builder, ref BlobString blobStr, string value)
    Parameters
    Type Name Description
    BlobBuilder builder

    The BlobBuilder instance building the blob asset.

    BlobString blobStr

    A reference to the field in the blob asset that will store the string. This function allocates memory for that field and sets the string value.

    String value

    The string to copy into the blob asset.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX