Safe Haskell | None |
---|---|
Language | Haskell2010 |
PrimVector
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.