|
| Data.Primitive.Addr | | Portability | non-portable | | Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
|
|
|
| Description |
| Primitive operations on machine addresses
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| A machine address
| | Constructors | |
|
|
|
| The null address
|
|
|
| Offset an address by the given number of bytes
|
|
|
| Distance in bytes between two addresses. The result is only valid if the
difference fits in an Int.
|
|
|
|
|
| Read a value from a memory position given by an address and an offset.
The memory block the address refers to must be immutable. The offset is in
elements of type a rather than in bytes.
|
|
|
| Read a value from a memory position given by an address and an offset.
The offset is in elements of type a rather than in bytes.
|
|
|
| Write a value to a memory position given by an address and an offset.
The offset is in elements of type a rather than in bytes.
|
|
| Produced by Haddock version 2.6.0 |