Skip to main content

Class VarIntBlocksAttribute

Tells weaver the block size to use for packing int values Allows small values to be sent using less bits Only works with integer fields (byte, int, ulong, enums etc)

Inheritance​
System.Object
System.Attribute
Inherited Members​
Show
Syntax​
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter)]
public class VarIntBlocksAttribute : Attribute, _Attribute

Constructors​

VarIntBlocksAttribute(Int32)​

Bit size of each block how many bits per size bits, eg if size = 6 then values under 2^6 will be sent at 7 bits, values under 2^12 sent as 14 bits, etc

Declaration​
public VarIntBlocksAttribute(int blockSize)
Parameters​
TypeNameDescription
System.Int32blockSizeValue should be between 1 and 64