docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Arithmetic

    Arithmetic helper class

    Inheritance
    object
    Arithmetic
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Netcode
    Assembly: solution.dll
    Syntax
    public static class Arithmetic

    Methods

    Name Description
    VarIntSize(ulong)

    Gets the output size in bytes after VarInting a unsigned integer

    ZigZagDecode(ulong)

    Decides a ZigZag encoded integer back to a signed integer

    ZigZagEncode(long)

    ZigZag encodes a signed integer and maps it to a unsigned integer

    In This Article
    Back to top
    Copyright © 2024 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)