docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BlobStringText

    Simple Unity.Entities.BlobString wrapper that can be embedded into components and allow to access the blob text as IUTF8Bytes and INativeList<T>. The text is considered readonly. All methods that change or affect the string will throw NotImplementedException.

    Implements
    INativeList<byte>
    IIndexable<byte>
    IUTF8Bytes
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode.LowLevel
    Assembly: Unity.NetCode.dll
    Syntax
    public struct BlobStringText : INativeList<byte>, IIndexable<byte>, IUTF8Bytes

    Constructors

    BlobStringText(ref BlobString)

    Construct the text from a Unity.Entities.BlobString reference. The string pointer is cached internally by this wrapper and if the original blob is detroyed, the memory content may point to something that it is not a string.

    Declaration
    public BlobStringText(ref BlobString blob)
    Parameters
    Type Name Description
    BlobString blob

    Unity.Entities.BlobString reference.

    Properties

    Capacity

    Declaration
    public int Capacity { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    this[int]

    Declaration
    public byte this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    byte
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    Length

    Declaration
    public int Length { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    Methods

    Clear()

    Declaration
    public void Clear()
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    ElementAt(int)

    Declaration
    public ref byte ElementAt(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    byte
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    GetUnsafePtr()

    Declaration
    public byte* GetUnsafePtr()
    Returns
    Type Description
    byte*

    TryResize(int, NativeArrayOptions)

    Declaration
    public bool TryResize(int newLength, NativeArrayOptions clearOptions = NativeArrayOptions.ClearMemory)
    Parameters
    Type Name Description
    int newLength
    NativeArrayOptions clearOptions
    Returns
    Type Description
    bool
    Remarks

    Always throw NotImplementedException

    Exceptions
    Type Condition
    NotImplementedException

    Always throw NotImplementedException

    Implements

    INativeList<T>
    IIndexable<T>
    IUTF8Bytes
    In This Article
    Back to top
    Copyright © 2025 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)