[Patch] Add TBitConverter class
Original Reporter info from Mantis: Bi0T1N @Bi0T1N
-
Reporter name: Bi0T1N
Original Reporter info from Mantis: Bi0T1N @Bi0T1N
- Reporter name: Bi0T1N
Description:
This patch provides an implementation for the TBitConverter class from Delphi (http://docwiki.embarcadero.com/Libraries/Rio/en/System.Types.TBitConverter). Basic tests are also provided.
Additional information:
It only gives correct results with base types but due to the generic nature it can also be used with e.g. AnsiString but that leads to wrong results. Thus I've used IsManagedType() to explicitly prevent the use but maybe there is a way to throw an error at compile time?
Mantis conversion info:
- Mantis ID: 37042
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 45409 (#6b548b90)