Module
Node.Buffer
- Package
- purescript-node-buffer
- Repository
- purescript-node/purescript-node-buffer
Mutable buffers and associated operations.
#allocUnsafe Source
allocUnsafe :: Int -> Effect Buffer
Creates a new buffer of the specified size. Unsafe because it reuses memory from a pool and may contain sensitive data. See the Node docs: https://nodejs.org/docs/latest-v18.x/api/buffer.html#what-makes-bufferallocunsafe-and-bufferallocunsafeslow-unsafe
#allocUnsafeSlow Source
allocUnsafeSlow :: Int -> Effect Buffer
Creates a new buffer of the specified size. Unsafe because it reuses memory from a pool and may contain sensitive data. See the Node docs: https://nodejs.org/docs/latest-v18.x/api/buffer.html#what-makes-bufferallocunsafe-and-bufferallocunsafeslow-unsafe
#toArrayBuffer Source
toArrayBuffer :: Buffer -> Effect ArrayBuffer