vext-0.1.8.0: Array library monomorphized with backpack
Safe HaskellNone
LanguageHaskell2010

PrimVector

Synopsis

Documentation

unsafeCloneFromByteArray Source #

Arguments

:: forall (n :: Nat) (a :: TYPE R). Int

Offset into byte array, units are elements, not bytes

-> Nat# n

Length of the vector, units are elements, not bytes

-> ByteArray 
-> Vector n a 

Crashes the program if the range is out of bounds. That is, behavior is always well defined.

Interprets the bytes in a native-endian fashion.

This is unsafe because it interprets bytes as an arbitrary type.