docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BitCounter

    Utility class to count the number of bytes or bits needed to serialize a value.

    Inheritance
    object
    BitCounter
    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 BitCounter

    Methods

    Name Description
    GetUsedBitCount(uint)

    Get the minimum number of bits required to represent the given value

    GetUsedBitCount(ulong)

    Get the minimum number of bits required to represent the given value

    GetUsedByteCount(uint)

    Get the minimum number of bytes required to represent the given value

    GetUsedByteCount(ulong)

    Get the minimum number of bytes required to represent the given value

    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)