Module

Node.Buffer.Internal

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

Functions and types to support the other modules. Not for public use.

#unsafeFreeze Source

unsafeFreeze :: forall buf m. Monad m => buf -> m ImmutableBuffer

#unsafeThaw Source

unsafeThaw :: forall buf m. Monad m => ImmutableBuffer -> m buf

#usingFromImmutable Source

usingFromImmutable :: forall buf m a. Monad m => (ImmutableBuffer -> a) -> buf -> m a

#usingToImmutable Source

usingToImmutable :: forall buf m a. Monad m => (a -> ImmutableBuffer) -> a -> m buf

#create Source

create :: forall buf m. Monad m => Int -> m buf

#copyAll Source

copyAll :: forall a buf m. a -> m buf

#fromArray Source

fromArray :: forall buf m. Monad m => Array Octet -> m buf

#fromString Source

fromString :: forall buf m. Monad m => String -> Encoding -> m buf

#fromArrayBuffer Source

fromArrayBuffer :: forall buf m. Monad m => ArrayBuffer -> m buf

#toArrayBuffer Source

toArrayBuffer :: forall buf m. Monad m => buf -> m ArrayBuffer

#read Source

read :: forall buf m. Monad m => BufferValueType -> Offset -> buf -> m Number

#readString Source

readString :: forall buf m. Monad m => Encoding -> Offset -> Offset -> buf -> m String

#toString Source

toString :: forall buf m. Monad m => Encoding -> buf -> m String

#write Source

write :: forall buf m. Monad m => BufferValueType -> Number -> Offset -> buf -> m Unit

#writeString Source

writeString :: forall buf m. Monad m => Encoding -> Offset -> Int -> String -> buf -> m Int

#toArray Source

toArray :: forall buf m. Monad m => buf -> m (Array Octet)

#getAtOffset Source

getAtOffset :: forall buf m. Monad m => Offset -> buf -> m (Maybe Octet)

#setAtOffset Source

setAtOffset :: forall buf m. Octet -> Offset -> buf -> m Unit

#slice Source

slice :: forall buf. Offset -> Offset -> buf -> buf

#size Source

size :: forall buf m. Monad m => buf -> m Int

#concat Source

concat :: forall buf m. Array buf -> m buf

#concat' Source

concat' :: forall buf m. Monad m => Array buf -> Int -> m buf

#copy Source

copy :: forall buf m. Offset -> Offset -> buf -> Offset -> buf -> m Int

#fill Source

fill :: forall buf m. Octet -> Offset -> Offset -> buf -> m Unit