Class: Gio::DataOutputStream

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

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:

#new(base_stream) ⇒ Gio::DataOutputStream

Creates a new data output stream for base_stream.

Parameters:

Returns:

#put_byte(data, cancellable) ⇒ TrueClass

Puts a byte into the output stream.

Parameters:

  • data (Integer)

    a #guchar.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_int16(data, cancellable) ⇒ TrueClass

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:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_int32(data, cancellable) ⇒ TrueClass

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:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_int64(data, cancellable) ⇒ TrueClass

Puts a signed 64-bit integer into the stream.

Parameters:

  • data (Integer)

    a #gint64.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_string(str, cancellable) ⇒ TrueClass

Puts a string into the output stream.

Parameters:

  • str (String)

    a string.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (TrueClass)

    true if string was successfully added to the stream.

#put_uint16(data, cancellable) ⇒ TrueClass

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:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_uint32(data, cancellable) ⇒ TrueClass

Puts an unsigned 32-bit integer into the stream.

Parameters:

  • data (Integer)

    a #guint32.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (TrueClass)

    true if data was successfully added to the stream.

#put_uint64(data, cancellable) ⇒ TrueClass

Puts an unsigned 64-bit integer into the stream.

Parameters:

  • data (Integer)

    a #guint64.

  • cancellable (Gio::Cancellable)

    optional #GCancellable object, nil to ignore.

Returns:

  • (TrueClass)

    true if data was successfully added to the stream.