Session.memSend

@function

Returns the serialized data to send.

This function behaves like send() except that it does not use Connector.write to transmit data. Instead, it assigns the serialized data to the given ubyte[] |data_arr|. The other callbacks are called in the same way as they are in send().

This function may not return all serialized data in one invocation. To get all data, call this function repeatedly until it returns an array of 0 length or one of negative error codes.

The assigned |data_ar| is valid until the next call of memSend() or send().

The caller must send all data before sending the next chunk of data.

This function returns an error code on failure or 0 on success

class Session
memSend
(
ref ubyte[] data_arr
)

Meta