package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Data_output_stream/index.html

Module Wrappers.Data_output_stream

type t = [ `data_output_stream | `filter_output_stream | `output_stream | `object_ ] Gobject.obj
val new_ : [ `output_stream | `object_ ] Gobject.obj -> t

Create a new DataOutputStream

val set_byte_order : t -> Gio_enums.datastreambyteorder -> unit

Sets the byte order of the data output stream to @order.

val put_uint64 : t -> UInt64.t -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

Puts an unsigned 64-bit integer into the stream.

val put_uint32 : t -> UInt32.t -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

Puts an unsigned 32-bit integer into the stream.

val put_uint16 : t -> UInt16.t -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

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

val put_string : t -> string -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

Puts a string into the output stream.

val put_int64 : t -> int64 -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

Puts a signed 64-bit integer into the stream.

val put_int32 : t -> Int32.t -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

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

val put_int16 : t -> Int16.t -> [ `cancellable | `object_ ] Gobject.obj option -> (bool, GError.t) result

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

val get_byte_order : t -> Gio_enums.datastreambyteorder

Gets the byte order for the stream.