Module

Node.Buffer.Unsafe

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

#slice Source

slice :: Offset -> Offset -> Buffer -> Buffer

Creates a new buffer slice that acts like a window on the original buffer. Writing to the slice buffer updates the original buffer and vice-versa. This is considered unsafe as writing to a slice can result in action at a distance.