Class VarIntAttribute
Tells weaver the max range for small, medium and large values. Allows small values to be sent using less bits Only works with integer fields (byte, int, ulong, enums etc)
Inherited Members
Show
Syntax
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter)]
public class VarIntAttribute : Attribute, _Attribute
Constructors
VarIntAttribute(UInt64, UInt64)
Declaration
public VarIntAttribute(ulong smallMax, ulong mediumMax)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | smallMax | |
System.UInt64 | mediumMax |
VarIntAttribute(UInt64, UInt64, UInt64, Boolean)
Declaration
public VarIntAttribute(ulong smallMax, ulong mediumMax, ulong largeMax, bool throwIfOverLarge = true)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | smallMax | |
System.UInt64 | mediumMax | |
System.UInt64 | largeMax | |
System.Boolean | throwIfOverLarge |