Module

Node.Buffer.ST

Package
purescript-node-buffer
Repository
purescript-node/purescript-node-buffer

#STBuffer Source

data STBuffer :: Region -> Typedata STBuffer t0

A reference to a mutable buffer for use with ST

The type parameter represents the memory region which the buffer belongs to.

Instances

#run Source

run :: (forall h. ST h (STBuffer h)) -> ImmutableBuffer

Runs an effect creating an STBuffer then freezes the buffer and returns it, without unneccessary copying.