Struct NativeString128 | Collections | 0.4.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Struct NativeString128

    Namespace: Unity.Collections
    Syntax
    public struct NativeString128 : IComparable<NativeString128>, IEquatable<NativeString128>

    Constructors

    NativeString128(String)

    Declaration
    public NativeString128(string source)
    Parameters
    Type Name Description
    String source

    NativeString128(ref NativeString32)

    Declaration
    public NativeString128(ref NativeString32 source)
    Parameters
    Type Name Description
    NativeString32 source

    NativeString128(ref NativeString4096)

    Declaration
    public NativeString128(ref NativeString4096 source)
    Parameters
    Type Name Description
    NativeString4096 source

    NativeString128(ref NativeString512)

    Declaration
    public NativeString128(ref NativeString512 source)
    Parameters
    Type Name Description
    NativeString512 source

    NativeString128(ref NativeString64)

    Declaration
    public NativeString128(ref NativeString64 source)
    Parameters
    Type Name Description
    NativeString64 source

    Fields

    buffer

    Declaration
    public Bytes126 buffer
    Field Value
    Type Description
    Bytes126

    LengthInBytes

    Declaration
    public ushort LengthInBytes
    Field Value
    Type Description
    UInt16

    MaxLength

    Declaration
    public const int MaxLength = 126
    Field Value
    Type Description
    Int32

    Properties

    Utf8Buffer

    When the address of the UTF-8 buffer is needed, please use this property.

    Declaration
    public Bytes1 Utf8Buffer { get; }
    Property Value
    Type Description
    Bytes1

    Utf8BufferLengthInBytes

    When the length in bytes of the UTF-8 buffer is needed, please use this property.

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

    Methods

    Append(Int32)

    Declaration
    public FormatError Append(int input)
    Parameters
    Type Name Description
    Int32 input
    Returns
    Type Description
    FormatError

    Append(Int64)

    Declaration
    public FormatError Append(long input)
    Parameters
    Type Name Description
    Int64 input
    Returns
    Type Description
    FormatError

    Append(Single, Char)

    Declaration
    public FormatError Append(float input, char decimalSeparator = '.')
    Parameters
    Type Name Description
    Single input
    Char decimalSeparator
    Returns
    Type Description
    FormatError

    AppendFrom(NativeString128)

    Declaration
    public CopyError AppendFrom(NativeString128 source)
    Parameters
    Type Name Description
    NativeString128 source
    Returns
    Type Description
    CopyError

    AppendFrom(NativeString32)

    Declaration
    public CopyError AppendFrom(NativeString32 source)
    Parameters
    Type Name Description
    NativeString32 source
    Returns
    Type Description
    CopyError

    AppendFrom(NativeString4096)

    Declaration
    public CopyError AppendFrom(NativeString4096 source)
    Parameters
    Type Name Description
    NativeString4096 source
    Returns
    Type Description
    CopyError

    AppendFrom(NativeString512)

    Declaration
    public CopyError AppendFrom(NativeString512 source)
    Parameters
    Type Name Description
    NativeString512 source
    Returns
    Type Description
    CopyError

    AppendFrom(NativeString64)

    Declaration
    public CopyError AppendFrom(NativeString64 source)
    Parameters
    Type Name Description
    NativeString64 source
    Returns
    Type Description
    CopyError

    AppendTo(Byte*, ref UInt16, UInt16)

    Declaration
    public CopyError AppendTo(byte *d, ref ushort length, ushort maxLength)
    Parameters
    Type Name Description
    Byte* d
    UInt16 length
    UInt16 maxLength
    Returns
    Type Description
    CopyError

    AppendTo(Char*, ref UInt16, UInt16)

    Declaration
    public CopyError AppendTo(char *d, ref ushort length, ushort maxLength)
    Parameters
    Type Name Description
    Char* d
    UInt16 length
    UInt16 maxLength
    Returns
    Type Description
    CopyError

    CompareTo(NativeString128)

    Declaration
    public int CompareTo(NativeString128 other)
    Parameters
    Type Name Description
    NativeString128 other
    Returns
    Type Description
    Int32

    CopyFrom(Char*, UInt16)

    Declaration
    public CopyError CopyFrom(char *s, ushort length)
    Parameters
    Type Name Description
    Char* s
    UInt16 length
    Returns
    Type Description
    CopyError

    CopyFrom(String)

    Declaration
    public CopyError CopyFrom(string source)
    Parameters
    Type Name Description
    String source
    Returns
    Type Description
    CopyError

    CopyFrom(NativeString128)

    Declaration
    public CopyError CopyFrom(NativeString128 source)
    Parameters
    Type Name Description
    NativeString128 source
    Returns
    Type Description
    CopyError

    CopyFrom(NativeString32)

    Declaration
    public CopyError CopyFrom(NativeString32 source)
    Parameters
    Type Name Description
    NativeString32 source
    Returns
    Type Description
    CopyError

    CopyFrom(NativeString4096)

    Declaration
    public CopyError CopyFrom(NativeString4096 source)
    Parameters
    Type Name Description
    NativeString4096 source
    Returns
    Type Description
    CopyError

    CopyFrom(NativeString512)

    Declaration
    public CopyError CopyFrom(NativeString512 source)
    Parameters
    Type Name Description
    NativeString512 source
    Returns
    Type Description
    CopyError

    CopyFrom(NativeString64)

    Declaration
    public CopyError CopyFrom(NativeString64 source)
    Parameters
    Type Name Description
    NativeString64 source
    Returns
    Type Description
    CopyError

    CopyTo(Byte*, out UInt16, UInt16)

    Declaration
    public CopyError CopyTo(byte *d, out ushort length, ushort maxLength)
    Parameters
    Type Name Description
    Byte* d
    UInt16 length
    UInt16 maxLength
    Returns
    Type Description
    CopyError

    CopyTo(Char*, out UInt16, UInt16)

    Declaration
    public CopyError CopyTo(char *d, out ushort length, ushort maxLength)
    Parameters
    Type Name Description
    Char* d
    UInt16 length
    UInt16 maxLength
    Returns
    Type Description
    CopyError

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(NativeString128)

    Declaration
    public bool Equals(NativeString128 other)
    Parameters
    Type Name Description
    NativeString128 other
    Returns
    Type Description
    Boolean

    Format(Int32)

    Declaration
    public FormatError Format(int input)
    Parameters
    Type Name Description
    Int32 input
    Returns
    Type Description
    FormatError

    Format(Int64)

    Declaration
    public FormatError Format(long input)
    Parameters
    Type Name Description
    Int64 input
    Returns
    Type Description
    FormatError

    Format(Single, Char)

    Declaration
    public FormatError Format(float input, char decimalSeparator = '.')
    Parameters
    Type Name Description
    Single input
    Char decimalSeparator
    Returns
    Type Description
    FormatError

    GetHashCode()

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

    Parse(ref Int32, ref Int32)

    Declaration
    public ParseError Parse(ref int offset, ref int output)
    Parameters
    Type Name Description
    Int32 offset
    Int32 output
    Returns
    Type Description
    ParseError

    Parse(ref Int32, ref Single, Char)

    Declaration
    public ParseError Parse(ref int offset, ref float output, char decimalSeparator = '.')
    Parameters
    Type Name Description
    Int32 offset
    Single output
    Char decimalSeparator
    Returns
    Type Description
    ParseError

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Operators

    Implicit(String to NativeString128)

    Declaration
    public static implicit operator NativeString128(string b)
    Parameters
    Type Name Description
    String b
    Returns
    Type Description
    NativeString128

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    In This Article
    • Constructors
      • NativeString128(String)
      • NativeString128(ref NativeString32)
      • NativeString128(ref NativeString4096)
      • NativeString128(ref NativeString512)
      • NativeString128(ref NativeString64)
    • Fields
      • buffer
      • LengthInBytes
      • MaxLength
    • Properties
      • Utf8Buffer
      • Utf8BufferLengthInBytes
    • Methods
      • Append(Int32)
      • Append(Int64)
      • Append(Single, Char)
      • AppendFrom(NativeString128)
      • AppendFrom(NativeString32)
      • AppendFrom(NativeString4096)
      • AppendFrom(NativeString512)
      • AppendFrom(NativeString64)
      • AppendTo(Byte*, ref UInt16, UInt16)
      • AppendTo(Char*, ref UInt16, UInt16)
      • CompareTo(NativeString128)
      • CopyFrom(Char*, UInt16)
      • CopyFrom(String)
      • CopyFrom(NativeString128)
      • CopyFrom(NativeString32)
      • CopyFrom(NativeString4096)
      • CopyFrom(NativeString512)
      • CopyFrom(NativeString64)
      • CopyTo(Byte*, out UInt16, UInt16)
      • CopyTo(Char*, out UInt16, UInt16)
      • Equals(Object)
      • Equals(NativeString128)
      • Format(Int32)
      • Format(Int64)
      • Format(Single, Char)
      • GetHashCode()
      • Parse(ref Int32, ref Int32)
      • Parse(ref Int32, ref Single, Char)
      • ToString()
    • Operators
      • Implicit(String to NativeString128)
    • Extension Methods
    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