API:Data.DB.TDBBitConverter
Delphi
TDBBitConverter = class(TBitConverter)
C++
class PASCALIMPLEMENTATION TDBBitConverter : public System::Types::TBitConverter
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Data.DB.pas Data.DB.hpp |
Data.DB | Data.DB |
Description
Converter between arrays of bytes and Delphi native types.
Data.DB.TDBBitConverter inherits from System.Types.TBitConverter. All content below this line refers to System.Types.TBitConverter.
Converter between arrays of bytes and Delphi native types.
TBitConverter provides two main class functions:
- From converts a value in a Delphi native type into an array of bytes.
- InTo converts an array of bytes into a Delphi native type.
For both functions there is an unsafe version (UnsafeFrom, UnsafeInTo) which does not check that the specified Offset
is valid. Unsafe functions perform better than their safe counterparts, but you must only use them if you are completely sure that the Offset
value that you are passing to the function is not lower than 0 or so high that, together with the size of the specified T
type, makes the target array of bytes overflow.