ocgtk.common
Glib_bytes
GLib.Bytes - Immutable reference-counted byte buffer
GBytes wraps an immutable block of memory with reference counting. Used for texture data, file contents, serialized data, etc.
ocgtk
ocgtk.cairo
ocgtk.gdk
ocgtk.gdk_pixbuf
ocgtk.gdkpixbuf
ocgtk.gio
ocgtk.graphene
ocgtk.gsk
ocgtk.gtk
ocgtk.pango
ocgtk.pango_cairo
ocgtk.pangocairo
type t
Opaque GBytes type - backed by GBytes* with g_bytes_unref finalizer
val create : string -> t
Create a GBytes from an OCaml string (copies the data)
val to_string : t -> string
Copy the GBytes data into a new OCaml string
val size : t -> int
Get the size of the byte buffer