Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Primitive.Ptr.BigEndian
Contents
Description
This is drop-in replacement for the read, write, and index functions
present in Data.Primitive.Ptr
. While the functions from those modules
use native byte order, the functions in this one use big-endian byte order
(most significant byte first).
Aligned
writeOffPtr :: (PrimMonad m, Prim a, Bytes a) => Ptr a -> Int -> a -> m () Source #
Write a primitive value to the pointer. The offset is given
in elements of type a
rather than in bytes. The most significant
byte in the value comes first.