Skip to main content

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)

Inheritance
System.Object
System.Attribute
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
TypeNameDescription
System.UInt64smallMax
System.UInt64mediumMax

VarIntAttribute(UInt64, UInt64, UInt64, Boolean)

Declaration
public VarIntAttribute(ulong smallMax, ulong mediumMax, ulong largeMax, bool throwIfOverLarge = true)
Parameters
TypeNameDescription
System.UInt64smallMax
System.UInt64mediumMax
System.UInt64largeMax
System.BooleanthrowIfOverLarge