On 03/11/14 17:04, Adriano dos Santos Fernandes wrote: > A possible solution may be to separate offset calculation from > IMessageMetadata. > > Something like: > > IMessageMetadata* mm = ... > > unsigned offsets[5], nullOffsets[5]; > > IUtil* util = dispatcher->getUtil(); > util->getOffsets(mm, offsets, nullOffsets, 5); // walk message by > types/lengths and calculate >
Agree except explicit size of arrays in the end of getOffsets() - we already have this info in IMessageMetadata. Call itself is very useful - it will help to build IMessageMetadata not using IMetadataBuilder. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel