Skip to main content

module

memory

Defines functions for memory manipulations.

You can import these APIs from the memory package. For example:

from memory import memcmp

Functions

  • memcmp: Compares two buffers. Both strings are assumed to be of the same length.
  • memcpy: Copies a memory area.
  • memset: Fills memory with the given value.
  • memset_zero: Fills memory with zeros.
  • stack_allocation: Allocates data buffer space on the stack given a data type and number of elements.