Module
Node.Buffer
- Package
- purescript-node-buffer
- Repository
- purescript-node/purescript-node-buffer
#writeString Source
writeString :: forall e. Encoding -> Offset -> Int -> String -> Buffer -> Eff (buffer :: BUFFER | e) Int
Writes octets from a string to a buffer at the specified offset. Multi-byte characters will not be written to the buffer if there is not enough capacity to write them fully. The number of bytes written is returned.