System.SysUtils.TIntegerSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TIntegerSet = set of 0..SizeOf(Integer) * 8 - 1;

C++

typedef System::Set<System::Int8, 0, 31> TIntegerSet;

Properties

Type Visibility Source Unit Parent
set
typedef
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

TIntegerSet is used to treat an integer as a set of bits.

Type TIntegerSet = set of 0 .. Integer-bit-size-1;

Assuming that an integer is 4 bytes (=32 bits), the set will be 0 .. 31. TIntegerSet is typically used to treat an integer as a set of bits. To do so, an integer variable value is assigned to a TIntegerSet variable using TIntegerSet casting.