How to marshaling struct with Ice-E?

wanwan Member tom zhouOrganization: RoadiSys,IncProject: intelligent service system
Hi Guys:

we have a project using Ice-E.
I want to marshaling/unmarshaling struct to/from ByteSeq.
I know ICE can use the stream interface to do that.
but, the problem is Ice-E has not the stream interface, so,
Is there any other way to do this? thx in advance.

Best regards
Tom

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    If you need that functionality, the best thing for you to do would be to write your own helper class that converts your structure to/from a byte sequence.

    There are Ice internal functions that also do this (otherwise Ice itself would not be able to marshal/unmarshal structs) but we strongly discourage the use of internal functions in user code.
Sign In or Register to comment.