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 m buf. Monad m => buf -> m ImmutableBuffer

#unsafeThaw Source

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

#usingFromImmutable Source

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

#usingToImmutable Source

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

#create Source

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

#copyAll Source

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

#fromArray Source

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

#fromString Source

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

#fromArrayBuffer Source

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

#toArrayBuffer Source

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

#read Source

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

#readString Source

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

#toString Source

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

#write Source

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

#writeString Source

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

#toArray Source

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

#getAtOffset Source

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

#setAtOffset Source

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

#slice Source

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

#size Source

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

#concat Source

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

#concat' Source

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

#copy Source

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

#fill Source

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