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.common/Glib_bytes/index.html

Module Glib_bytesSource

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.

Sourcetype t

Opaque GBytes type - backed by GBytes* with g_bytes_unref finalizer

Sourceval create : string -> t

Create a GBytes from an OCaml string (copies the data)

Sourceval to_string : t -> string

Copy the GBytes data into a new OCaml string

Sourceval size : t -> int

Get the size of the byte buffer