Module

Node.Buffer.Unsafe

#slice

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.

Modules