TLongIntHelper¶
Declaration¶
Source position: syshelph.inc line 1213
type
TLongIntHelper = type helper for LongInt
const
MaxValue = High(LongInt);
MinValue = Low(LongInt);
MaxBit = High(TLongIntBitIndex);
MinBit = Low(TLongIntBitIndex);
MaxNibble = High(TLongIntNibbleIndex);
MinNibble = Low(TLongIntNibbleIndex);
MaxByte = High(TLongIntByteIndex);
MinByte = Low(TLongIntByteIndex);
MaxWord = High(TLongIntWordIndex);
MinWord = Low(TLongIntWordIndex);
public
class function Size : Integer;
class function ToString(const AValue: LongInt) : string; overload;
function ToString : string; overload;
class function Parse : LongInt;
class function TryParse : Boolean;
function ToBoolean : Boolean;
function ToDouble : Double;
function ToExtended : Extended;
function ToBinString : string;
function ToHexString(const AMinDigits: Integer) : string; overload;
function ToHexString : string; overload;
function ToSingle : Single;
function SetBit : LongInt;
function ClearBit : LongInt;
function ToggleBit : LongInt;
function TestBit : Boolean;
procedure Clear;
function HighestSetBitPos : Int8;
function LowestSetBitPos : Int8;
function SetBitsCount : Byte;
property Bits[aIndex : TLongIntBitIndex = 0..31]: Boolean; {rw}
property Nibbles[aIndex : TLongIntNibbleIndex = TDwordNibbleIndex]: nibble; {rw}
property Bytes[aIndex : TLongIntByteIndex = TDwordByteIndex]: Byte; {rw}
property Words[aIndex : TLongIntWordIndex = TDwordWordIndex]: Word; {rw}
end;
Inheritance¶
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Clear | public | |
| ClearBit | public | |
| HighestSetBitPos | public | |
| LowestSetBitPos | public | |
| Parse | public | |
| SetBit | public | |
| SetBitsCount | public | |
| Size | public | |
| TestBit | public | |
| ToBinString | public | |
| ToBoolean | public | |
| ToDouble | public | |
| ToExtended | public | |
| ToggleBit | public | |
| ToHexString | public | |
| ToSingle | public | |
| ToString | public | |
| TryParse | public |