Archived

This forum has been archived. Please start a new discussion on GitHub.

How to marshaling struct with Ice-E?

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

  • dwayne
    dwayne St. John's, Newfoundland
    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.