| |||||||
| |||||||
| |||||||
Description | |||||||
Synopsis | |||||||
| |||||||
Local allocation | |||||||
| |||||||
Convenience function which allocates sufficient memory to hold values of type α, applies the given continuation function to the resulting regional pointer and runs the resulting region. This should provide a safer replacement for: Foreign.Marshal.Alloc.alloca. Note that: alloca = allocaBytes $ sizeOf (undefined :: α) | |||||||
| |||||||
Convenience function which allocates the given number of bytes, applies the given continuation function to the resulting regional pointer and runs the resulting region. This should provide a safer replacement for: Foreign.Marshal.Alloc.allocaBytes. | |||||||
Dynamic allocation | |||||||
| |||||||
Convenience function which allocates sufficient memory to hold values of type α and returns a regional pointer to them. This should provide a safer replacement for: Foreign.Marshal.Alloc.malloc. Note that: malloc = mallocBytes $ sizeOf (undefined :: α) | |||||||
| |||||||
Convenience function which allocates the given number of bytes and returns a regional pointer to them. This should provide a safer replacement for: Foreign.Marshal.Alloc.mallocBytes. | |||||||
TODO: Define and export: realloc and reallocBytes. | |||||||
Produced by Haddock version 2.6.0 |