Struct NativeStringView | Collections | 0.8.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Struct NativeStringView

    Namespace: Unity.Collections
    Syntax
    public struct NativeStringView
    Remarks

    A "NativeStringView" does not manage its own memory - it expects some other object to manage its memory on its behalf.

    Constructors

    NativeStringView(Char*, Int32)

    Declaration
    public NativeStringView(char *p, int l)
    Parameters
    Type Name Description
    Char* p
    Int32 l

    Properties

    Item[Int32]

    Declaration
    public char this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Char

    Length

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

    Methods

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX