docs.unity3d.com
    Show / Hide Table of Contents

    Class FixedStringHexExt

    Provides Extension methods for FixedStrings

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

    Methods

    AppendHex<T>(ref T, UInt16)

    Appends the hex using the specified str

    Declaration
    public static FormatError AppendHex<T>(this ref T str, ushort val)
        where T : struct, 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.

    UInt16 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 , either None or Overflow.

    Type Parameters
    Name Description
    T

    The string type. Has constraints where it must be unmanaged, an INativeList<byte> and IUTF8Bytes.

    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