| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ros.Internal.Util.BytesToVector
- unsafeBytesToVector :: Storable a => Int -> ByteString -> Vector a
- bytesToVectorL :: Storable a => Int -> ByteString -> Vector a
- bytesToVector :: Storable a => Int -> ByteString -> Vector a
- unsafeVectorToBytes :: forall a. Storable a => Vector a -> ByteString
- vectorToBytes :: forall a. Storable a => Vector a -> ByteString
Documentation
unsafeBytesToVector :: Storable a => Int -> ByteString -> Vector a Source
Construct a Vector with the specified number of elements from a strict ByteString without copying.
bytesToVectorL :: Storable a => Int -> ByteString -> Vector a Source
Construct a Vector with the specified number of elements from a lazy ByteString.
bytesToVector :: Storable a => Int -> ByteString -> Vector a Source
Construct a Vector with the specified number of elements from a strict ByteString making a copy of the underlying data in the process.
unsafeVectorToBytes :: forall a. Storable a => Vector a -> ByteString Source
Construct a strict ByteString from a Vector without copying the underlying data.
vectorToBytes :: forall a. Storable a => Vector a -> ByteString Source
Construct a strict ByteString from a copy of the data underlying a Vector.