> input/output metadata (that's IMessageMetadata, yes?) provide you with a 

Yes.

> set of methods needed to access data in buffer correctly
> unavoidable one is getOffset() - it returns offset in a buffer where 
> data is placed

How's some called? I see only getRelation, getOffset, getType etc.
Currently I'm "reading" the values manually like this:
"int value = *((char*)inMsg + offset)" where the offset I get from
"inputMetadata->getOffset(status, i)".

I was looking something like "int* readAsInt(<status>, <buffer>,
<index>)". But maybe I'm in wrong mindset.

Looking at your TypeMix union seems to be good idea (I'm used to to not
be able to access memory directly in C#, so I haven't thought about it).

I might eventually pass that to C#, probably. Let's see where I shoot
myself into foot.

> Yes, you can - but that's ugly choice. You loose for example ability to 
> access objects with names >31 symbol long.

OK, so I'm not going to go that path. Thanks for letting me know. It
might have been time wasted later.

-- 
Mgr. Jiří Činčura
Independent IT Specialist

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to