Skip to main content

Class BitCountAttribute

Tells weaver how many bits to sue for field Only works with integer fields (byte, int, ulong, enums etc)

NOTE: bits are truncated when using this, so signed values will lose their sign. Use as well if value might be negative

Also See: Bit Packing Documentation

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

Constructors​

BitCountAttribute(Int32)​

Declaration​
public BitCountAttribute(int bitCount)
Parameters​
TypeNameDescription
System.Int32bitCountValue should be between 1 and 64