Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 545 Bytes

Node.Buffer.md

File metadata and controls

34 lines (23 loc) · 545 Bytes

Node.Buffer

Native bindings for Buffer module.

type alias Buffer

type alias Buffer  =  
    Node.Buffer.LowLevel.Buffer

Buffer type.


fromString

fromString : Node.Encoding.Encoding -> String -> Result Node.Error.Error Node.Buffer.Buffer

Convert a String to a Buffer.


toString

toString : Node.Encoding.Encoding -> Node.Buffer.Buffer -> Result Node.Error.Error String

Convert a Buffer to a String.