[][src]Function dart_sys::Dart_ServiceSendDataEvent

pub unsafe extern "C" fn Dart_ServiceSendDataEvent(
    stream_id: *const c_char,
    event_kind: *const c_char,
    bytes: *const u8,
    bytes_length: isize
) -> Dart_Handle

Sends a data event to clients of the VM Service.

A data event is used to pass an array of bytes to subscribed VM Service clients. For example, in the standalone embedder, this is function used to provide WriteEvents on the Stdout and Stderr streams.

If the embedder passes in a stream id for which no client is subscribed, then the event is ignored.

\param stream_id The id of the stream on which to post the event.

\param event_kind A string identifying what kind of event this is. For example, 'WriteEvent'.

\param bytes A pointer to an array of bytes.

\param bytes_length The length of the byte array.

\return Success if the arguments are well formed. Otherwise, returns an error handle.