Method

VarlinkMessagenew_slice

Declaration [src]

VarlinkMessage*
varlink_message_new_slice (
  VarlinkMessage* message,
  gsize offset,
  gsize length
)

Description [src]

Creates a new VarlinkMessage for a slice of message.

Parameters

message

Type: VarlinkMessage

A VarlinkMessage.

The instance takes ownership of the data, and is responsible for freeing it.
offset

Type: gsize

The offset within message.

length

Type: gsize

The length of the slice in bytes.

Return value

Type: VarlinkMessage

A new VarlinkMessage.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.