[fpc-pascal] Variant vs Pointer

Marcos Douglas md at delfire.net
Thu Mar 1 02:38:22 CET 2012


The TField class have the FValueBuffer: Pointer attribute and have
also SetData(Buffer: Pointer,...) method that all T***Field subclasses
use to set themselves.
The methods AsInteger, AsString, etc use FValueBuffer to convert in an
especific type. So, FValueBuffer could be anything.

My question is:
What would be the difference in performance if FValueBuffer were a Variant type?

Marcos Douglas

More information about the fpc-pascal mailing list