Skip to main content

Unity.Networking.Transport.NetworkCompressionModel

Used to provide Huffman compression when using packed DataStream functions

Implements#

System.IDisposable

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
public struct NetworkCompressionModel : IDisposable

NetworkCompressionModel(Allocator)#

Initializes a new instance of the NetworkCompressionModel class

Declaration#

public NetworkCompressionModel(Allocator allocator)

Parameters#

TypeNameDescription
AllocatorallocatorThe allocator

#

CalculateBucket(UInt32)#

Calculates the bucket using the specified value

Declaration#

public int CalculateBucket(uint value)

Parameters#

TypeNameDescription
System.UInt32valueThe value

Returns#

TypeDescription
System.Int32The bucket index

Dispose()#

Disposes this instance

Declaration#

public void Dispose()

Implements#

System.IDisposable