Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
Buffer | |
|
_bufferBackPos :: Int Source #
newBufferAsStack :: (Unbox a, PrimMonad m) => Int -> m (Buffer (PrimState m) a) Source #
newBufferAsQueue :: (Unbox a, PrimMonad m) => Int -> m (Buffer (PrimState m) a) Source #
newBufferAsDeque :: (Unbox a, PrimMonad m) => Int -> m (Buffer (PrimState m) a) Source #
lengthBuffer :: PrimMonad m => Buffer (PrimState m) a -> m Int Source #
clearBuffer :: PrimMonad m => Buffer (PrimState m) a -> m () Source #
freezeBuffer :: (Unbox a, PrimMonad m) => Buffer (PrimState m) a -> m (Vector a) Source #
unsafeFreezeBuffer :: (Unbox a, PrimMonad m) => Buffer (PrimState m) a -> m (Vector a) Source #
freezeInternalBuffer :: (Unbox a, PrimMonad m) => Buffer (PrimState m) a -> m (Vector a) Source #
unsafeFreezeInternalBuffer :: (Unbox a, PrimMonad m) => Buffer (PrimState m) a -> m (Vector a) Source #
pushFronts :: (Unbox a, PrimMonad m) => Vector a -> Buffer (PrimState m) a -> m () Source #