docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkCompressionModel

    Used to provide Huffman compression when using packed DataStream functions

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct NetworkCompressionModel : IDisposable

    Constructors

    NetworkCompressionModel(Allocator)

    Initializes a new instance of the NetworkCompressionModel class

    Declaration
    public NetworkCompressionModel(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The allocator

    Methods

    CalculateBucket(uint)

    Calculates the bucket using the specified value

    Declaration
    public int CalculateBucket(uint value)
    Parameters
    Type Name Description
    uint value

    The value

    Returns
    Type Description
    int

    The bucket index

    Dispose()

    Disposes this instance

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)