func_system_memalloc.rst 701 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _func_system_memalloc:
  2. ========
  3. MemAlloc
  4. ========
  5. MemAlloc - Allocate memory
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. MemAlloc:Byte Ptr( size:Size_T )
  10. Allocates a block of ``size`` bytes of memory, returning a pointer to the start of the block.
  11. The content of the newly allocated block remains uninitialised, and therefore has indeterminate values.
  12. Parameters
  13. ==========
  14. * ``size`` - Size of the block of memory, in bytes.
  15. Return Values
  16. =============
  17. A new block of memory ``size`` bytes long.
  18. Examples
  19. ========
  20. See Also
  21. ========
  22. :ref:`func_system_memextend`, :ref:`func_system_memmove`, :ref:`func_system_memcopy`, :ref:`func_system_memfree`, :ref:`func_system_memclear`