Module Node.Buffer
Node Buffer API
ocaml
type t = Node.bufferreasonml
type t = Node.buffer;ocaml
type encoding = [
| `ascii
| `utf8
| `utf16le
| `ucs2
| `base64
| `base64url
| `latin1
| `binary
| `hex
]reasonml
type encoding = [
| `ascii
| `utf8
| `utf16le
| `ucs2
| `base64
| `base64url
| `latin1
| `binary
| `hex
];ocaml
val isBuffer : 'a -> boolreasonml
let isBuffer: 'a => bool;ocaml
val fromString : string -> treasonml
let fromString: string => t;ocaml
val fromStringWithEncoding : string -> encoding:encoding -> treasonml
let fromStringWithEncoding: string => encoding:encoding => t;ocaml
val toString : ?encoding:encoding -> t -> stringreasonml
let toString: ?encoding:encoding => t => string;ocaml
val concat : t array -> treasonml
let concat: array(t) => t;