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
Can be used on an enum type, so all fields and parameters using that enum are packed. Attribute on field or parameter will override the enum's attribute Also See: Bit Packing Documentation
Inherited Members
Show
Syntax
[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field | AttributeTargets.Parameter)]
public class BitCountAttribute : Attribute, _Attribute
Constructors
BitCountAttribute(Int32)
Declaration
public BitCountAttribute(int bitCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | bitCount | Value should be between 1 and 64 |