Gio.SocketControlMessage.prototype.serialize

function serialize(data: void): void {
    // Gjs wrapper for g_socket_control_message_serialize()
}
  

Converts the data in the message to bytes placed in the message.

data is guaranteed to have enough space to fit the size returned by Gio.SocketControlMessage.prototype.get_size on this object.

Since 2.22

data

A buffer to write data to