QESBPCSSystem Unit Routines |
Description
This is designed to work in Borland Delphi 6 CLX and above, Borland C++ Builder 6 CLX and above, and Borland Kylix 2 and above. Most if not all features will work in Kylix 1 but it is not currently supported.
Supplies low level & System routines such as 16-bit & 32-bit BitLists and Block & Data Manipulations.
Copyright © 1999-2001 ESB Consultancy.
v2.3 - 14 September 2002
Routines |
BitIsSet | Returns True if Specified Bit of BitList is 1. |
Bits2LStr | Converts a Long Bit list to a string of '1' and '0'. |
Bits2Str | Converts a Bit list to a string of '1' and '0'. |
BitsSet | Returns a number from 0 -> 32 indicating the number of Bits Set. |
ClearAllBits | Sets all Bits in a BitList to 0. |
ClearBit | Sets specified Bit of a BitList to 0. |
ESBClear | Fills given structure with specified number of 0 values, effectively clearing it. |
ESBExchange | Swaps the data for the specified number of bytes between the two structures. |
ESBSame | Returns True if two structures have the same bytes for the first Size Words. |
FlipAllBits | Flips all Bits in a BitList, i.e 1 becomes 0 and 0 becomes 1. |
FlipBit | Flips specified Bit of a BitList, ie 0 becomes 1 and 1 becomes 0. |
iff | Performs an if that can be used in Expressions. |
MakeInt64 | Combine High and Low DWord into Int64. |
ReverseBits | Reverses the Bit List, ie Bit 15 swap Bit 0, Bit 14 swap Bit1, etc. |
SetAllBits | Sets all Bits in a BitList to 1. |
SetBit | Sets specified Bit of a BitList to 1. |
SplitInt64 | Split a Int64 into High DWord and Low DWord. |
Str2Bits | Converts a string of '1' and '0' into a BitList. |
SwapXY | Swap 2 Values using a Temp Value. |
|