Module

Node.Buffer.Internal

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

#unsafeFreeze

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

#unsafeThaw

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

#usingFromImmutable

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

#usingToImmutable

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

#create

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

#copyAll

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

#fromArray

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

#fromString

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

#fromArrayBuffer

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

#toArrayBuffer

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

#read

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

#readString

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

#toString

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

#write

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

#writeString

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

#toArray

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

#getAtOffset

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

#setAtOffset

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

#slice

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

#size

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

#concat

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

#concat'

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

#copy

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

#fill

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

Modules