docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FixedStringHexExt

    Provides Extension methods for FixedStrings

    Inheritance
    object
    FixedStringHexExt
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Networking.Transport.Utilities
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public static class FixedStringHexExt

    Methods

    AppendHex<T>(ref T, ushort)

    Appends the hex using the specified str

    Declaration
    public static FormatError AppendHex<T>(this ref T str, ushort val) where T : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T str

    The string of type T. Passed in by reference, and will be modified by this method.

    ushort val

    The ushort representation of the hex value to convert to its string representation and append to T.

    Returns
    Type Description
    FormatError

    The FormatError from the attempt to modify str, either None or Overflow.

    Type Parameters
    Name Description
    T

    The string type. Has constraints where it must be unmanaged, an INativeList<byte> and 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)