How does the two components of data marshalling apply to (i) an array of integers, and (ii) an object? (Describe in general terms what needs to be flattened and encoded in each case.)

This is an exercise on data marshalling.
In the context of IPC:


(i) for an array: each component will need to be flattened and encoded; the components are then appended one after another, with a count of the components and the type of each component specified in a header.
(ii) For an object: the data, the method, and the state of execution will need to be represented in a binary stream, in such a way that, once transmitted, the object can be reconstituted at the receiver’s. Note that each data item in an object must be marshaled, and references and pointers, if any, must be mapped appropriately by the receiver.

Computer Science & Information Technology

You might also like to view...

Which structure should be used when you want to warm up the interviewee to a topic?

A) funnel B) pyramid C) diamond D) oval

Computer Science & Information Technology

The ______ statement instructs the computer to display information on the screen.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Most TCP/IP applications use TCP as the Transport layer protocol because it is a connectionless protocol designed to check for errors.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

mySQL is a popular ____________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology