Copyright | (c) Mateusz Kłoczko 2016 |
---|---|
License | MIT |
Maintainer | mateusz.p.kloczko@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Documentation
The datatype representing the memory layout of a given struct.
:: [(Size, Alignment)] | List of sizes and aligments of the type's/struct's fields. [(Int,Int)] |
-> [Offset] | List representing the offests of the type's/struct's fields. [Int] |
Calculates the memory offset of type's/struct's fields.
:: [(Size, Alignment)] | List of sizes and aligments of the type's/struct's fields. [(Int,Int)]. |
-> Size | The returned size. Int |
Calculates the size of the type/struct.
Calculate the alignment of a struct.