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.1.tbz
sha256=146725bf2d0ef5ef95d7cf72a524c6f72697c7c619627be5fb2451f9daf6d28e
sha512=190962b9044f7b044bb36d8c8eb42223fbc7a31160429917725cf931e2c608c5ee0f669bcbca1a9fe731c62759c427c6e832fccad3f35a282ca517ad75631d25

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