Class: Gio::DataOutputStream

Inherits:
FilterOutputStream show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from FilterOutputStream

#base_stream, #base_stream=, #close_base_stream, #close_base_stream=, #close_base_stream?

Methods inherited from OutputStream

#clear_pending, #close, #close_async, #close_finish, #flush, #flush_async, #flush_finish, #has_pending, #is_closed, #is_closing, open, #printf, #set_pending, #splice, #splice_async, #splice_finish, #vprintf, #write, #write_all, #write_all_async, #write_all_finish, #write_async, #write_bytes, #write_bytes_async, #write_bytes_finish, #write_finish, #writev, #writev_all, #writev_all_async, #writev_all_finish, #writev_async, #writev_finish

Constructor Details

#initialize(base_stream) ⇒ Gio::DataOutputStream

Creates a new data output stream for base_stream.

Parameters:

Instance Method Details

#byte_orderGio::DataStreamByteOrder

Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.

Returns:

#byte_order=(byte_order) ⇒ Gio::DataStreamByteOrder

Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.

Parameters:

Returns:

#put_byte(data, cancellable) ⇒ Boolean

Puts a byte into the output stream.

Parameters:

  • data (Integer)

    a #guchar.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_int16(data, cancellable) ⇒ Boolean

Puts a signed 16-bit integer into the output stream.

Parameters:

  • data (Integer)

    a #gint16.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_int32(data, cancellable) ⇒ Boolean

Puts a signed 32-bit integer into the output stream.

Parameters:

  • data (Integer)

    a #gint32.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_int64(data, cancellable) ⇒ Boolean

Puts a signed 64-bit integer into the stream.

Parameters:

  • data (Integer)

    a #gint64.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_string(str, cancellable) ⇒ Boolean

Puts a string into the output stream.

Parameters:

  • str (String)

    a string.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if string was successfully added to the stream.

#put_uint16(data, cancellable) ⇒ Boolean

Puts an unsigned 16-bit integer into the output stream.

Parameters:

  • data (Integer)

    a #guint16.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_uint32(data, cancellable) ⇒ Boolean

Puts an unsigned 32-bit integer into the stream.

Parameters:

  • data (Integer)

    a #guint32.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.

#put_uint64(data, cancellable) ⇒ Boolean

Puts an unsigned 64-bit integer into the stream.

Parameters:

  • data (Integer)

    a #guint64.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (Boolean)

    true if data was successfully added to the stream.