package quickjs

  1. Overview
  2. Docs
Bindings for QuickJS (a Javascript Engine to be embedded https://bellard.org/quickjs)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickjs-0.4.2.tbz
sha256=594fac60b9273af7e1903f0689efa353121309d8de911376f91966c32cd3ab7f
sha512=68beb126919a214fa9e46d84566c97e6ff3667c6c4478f352f1145e5bf1888b2a5eaca9855f39d734b2e9dc5bc0c7650f45679d177d546a2b0ba53dced5f2d1f

doc/src/quickjs.c/cutils.ml.html

Source file cutils.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(** Low-level bindings to QuickJS's cutils - Integer to String Conversion

    Fast integer-to-string functions (itoa family). These are raw C bindings;
    for a higher-level API, use [Quickjs.Number]. *)

(** Convert unsigned 32-bit integer to decimal string *)
let u32toa buf n = Bindings.C.Functions.u32toa buf n

(** Convert signed 32-bit integer to decimal string *)
let i32toa buf n = Bindings.C.Functions.i32toa buf n

(** Convert unsigned 64-bit integer to decimal string *)
let u64toa buf n = Bindings.C.Functions.u64toa buf n

(** Convert signed 64-bit integer to decimal string *)
let i64toa buf n = Bindings.C.Functions.i64toa buf n

(** Convert unsigned 64-bit integer to string in given radix (2-36) *)
let u64toa_radix buf n radix = Bindings.C.Functions.u64toa_radix buf n radix

(** Convert signed 64-bit integer to string in given radix (2-36) *)
let i64toa_radix buf n radix = Bindings.C.Functions.i64toa_radix buf n radix