TNativeUIntHelper helper
Helper for a NativeUInt-typed ordinal value.
Declaration
TNativeUIntHelper = classDescends from it: TNativeUIntSysHelper
Description
NativeUInt contains some auxiliary routines for a NativeUInt-typed ordinal value.
It consists mainly of conversion routines to and from other types.See also
- TStringHelper
- TShortIntHelper
- TSmallIntHelper
- TWordHelper
- TCardinalHelper
- TIntegerHelper
- TInt64Helper
- TQWordHelper
- TNativeIntHelper
- TByteHelper
Properties
Bits | public | Read or write a bit. |
Nibbles | public | Read or write a nibble. |
Bytes | public | Read or write a byte. |
Methods
Parse | public | Convert from a string. |
Size | public | Size, in bytes, of the NativeUInt value. |
ToString | public | Convert the value to string. |
TryParse | public | Try to convert a string to a NativeUInt, report success or failure. |
GetBit | protected | |
PutBit | protected | |
GetNibble | protected | |
PutNibble | protected | |
GetByte | protected | |
PutByte | protected | |
ToBoolean | public | Convert to a boolean value. |
ToDouble | public | Convert to a double-sized floating point value. |
ToExtended | public | Convert to an extended-sized floating point value. |
ToBinString | public | Convert to a binary string representation. |
ToHexString | public | Convert to a hexadecimal string representation. |
ToSingle | public | Convert to an single-sized floating point value. |
SetBit | public | Set bit to 1. |
ClearBit | public | Set bit to 0. |
ToggleBit | public | Invert bit. |
TestBit | public | Check bit. |
Clear | public | Set value to 0. |
HighestSetBitPos | public | Return the position of the leftmost bit set. |
LowestSetBitPos | public | Return the position of the rightmost bit set. |
SetBitsCount | public | Count number of bits set. |
Types and constants
MaxValue | Maximum value for a NativeUInt. | |
MinValue | Minimum value for a NativeUInt. | |
MaxBit | Maximum value for a bit. | |
MinBit | Minimum value for a bit. | |
MaxNibble | Maximum value for a nibble. | |
MinNibble | Minimum value for a nibble. | |
MaxByte | Maximum value for a byte. | |
MinByte | Minimum value for a byte. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
