docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct BlobStringText

    Simple 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.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode.LowLevel
    Assembly: solution.dll
    Syntax
    public struct BlobStringText : INativeList<byte>, IIndexable<byte>, IUTF8Bytes

    Constructors

    Name Description
    BlobStringText(ref BlobString)

    Construct the text from a 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.

    Properties

    Name Description
    Capacity
    IsEmpty
    this[int]
    Length

    Methods

    Name Description
    Clear()
    ElementAt(int)
    GetUnsafePtr()
    TryResize(int, NativeArrayOptions)
    In This Article
    Back to top
    Copyright © 2023 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)