Struct NetworkCompressionModel
Used to provide Huffman compression when using packed DataStream functions
Implements
Inherited Members
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()