KBLib - dynamic record streaming r15

By Krystian Bigaj

Freeware 15 Aug 2011

In category

Components > Tools > Streams

Description

TKBDynamic allows to save/load/get(binary)size/compare any dynamic type with only one line of code. This can be used for example to share data by any IPC mechanism. Dynamic types can be for example:
  • String
  • array of String (or any type)
  • dynamic record (must contain at least one dynamic type)
Complex dynamic record defined as in http://code.google.com/p/kblib/source/browse/trunk/Tests/TestuKBDynamic.pas#36 can be streamed in just single line of code like:
  • TKBDynamic.WriteTo(lStream, lTestRecord, TypeInfo(TTestRecord));
  • TKBDynamic.ReadFrom(lStream, lTestRecord, TypeInfo(TTestRecord));
Tested on Delphi 2006/2009/XE. Extended RTTI (added in D2010) is NOT used at all (no need for this case).

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 59 523kB

Platforms:

  • Delphi 2006 (Win32)
  • Delphi 2007 (VCL)
  • Delphi 2009
  • Delphi 2010
  • Delphi 7
  • Delphi XE

Downloads