Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Back  Login

GLib::DataOutputStream Diff - Ruby-GNOME2 Project Website

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= class GLib::DataOutputStream

Data output stream implements GLib::OutputStream and includes functions for
writing data directly to an output stream.

== Object Hierarchy

* Object
  * GLib::Instantiatable
    * GLib::Object
      * GLib::OutputStream
        * GLib::FilterOutputStream
          * GLib::DataOutputStream

== Class Methods

--- GLib::DataOutputStream.new(base_stream, byte_order = GLib::DATA_STREAM_BYTE_ORDER_BIG_ENDIAN)

     Creates a new data output stream ((|base_stream|)) with the given
     ((|byte_order|)).

     * Returns: a new GLib::DataOutputStream

== Instance Methods

--- byte_order

    Gets the byte order.

     * Returns: The byte order as a GLib::DataStreamByteOrder

--- byte_order=(byte_order)

     Same as GLib::DataInputStream#set_byte_order.

     * Returns: ((|byte_order|))

--- put_byte(data, cancellable = nil)

     Puts a byte into the output stream.

     A GLib::IO::Error is raised if the byte can’t be output.

     * data: A Fixnum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_int16(data, cancellable = nil)

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

     * data: A Fixnum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_int32(data, cancellable = nil)

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

     * data: A Fixnum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_int64(data, cancellable = nil)

     Puts a signed 64-bit integer into the stream.

     * data: A Fixnum or Bignum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_string(str, cancellable = nil)

     Puts a String into the output stream.

     * str: A String
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_uint16(data, cancellable = nil)

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

     * data: A Fixnum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_uint32(data, cancellable = nil)

     Puts an unsigned 32-bit integer into the stream.

     * data: A Fixnum or Bignum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- put_uint64(data, cancellable = nil)

     Puts an unsigned 64-bit integer into the stream.

     * data: A Fixnum or Bignum
     * cancellable: Optional GLib::Cancellable object, nil to ignore
     * Returns: self

--- set_byte_order(byte_order)

     Sets the byte order.

     * byte_order: The GLib::DataStreamByteOrder
     * Returns: self

== Properties

--- byte-order: GLib::DataStreamByteOrder (Read/Write)

    The byte order

    Default value: GLib::DATA_STREAM_BYTE_ORDER_BIG_ENDIAN


== See Also

== ChangeLog