|
@@ -50,6 +50,16 @@ void * get_next(void *ptr);
|
|
size_t get_size(void *ptr);
|
|
size_t get_size(void *ptr);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * Get the requested size of the memory block's data
|
|
|
|
+ *
|
|
|
|
+ * \param ptr The pointer to the data part of the current memory block.
|
|
|
|
+ *
|
|
|
|
+ * \return The size of the data that was initialy requested for this memory
|
|
|
|
+ * block.
|
|
|
|
+ */
|
|
|
|
+size_t get_requested_size(void *ptr);
|
|
|
|
+
|
|
|
|
+/**
|
|
* Get all information of the memory block header's size record
|
|
* Get all information of the memory block header's size record
|
|
*
|
|
*
|
|
* \param ptr The pointer to the data part of the current memory block.
|
|
* \param ptr The pointer to the data part of the current memory block.
|
|
@@ -91,12 +101,11 @@ void mark_used(void *ptr);
|
|
void mark_free(void *ptr);
|
|
void mark_free(void *ptr);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Set the availability and the size of the previous memory block's data
|
|
+ * Set the availability and the size of the previous memory block
|
|
*
|
|
*
|
|
- * \param ptr The pointer to the data part of the current memory block.
|
|
+ * \param ptr The pointer to the data part of the previous memory block.
|
|
* \param previous_size_availability The size for the data part of the previous
|
|
* \param previous_size_availability The size for the data part of the previous
|
|
* memory block on data layout level.
|
|
* memory block on data layout level.
|
|
- *
|
|
|
|
*/
|
|
*/
|
|
void set_previous_size_availability(void *ptr, size_t previous_size_availability);
|
|
void set_previous_size_availability(void *ptr, size_t previous_size_availability);
|
|
|
|
|
|
@@ -121,6 +130,14 @@ bool is_previous_free(void *ptr);
|
|
*/
|
|
*/
|
|
size_t get_previous_size(void *ptr);
|
|
size_t get_previous_size(void *ptr);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * Get the size and the availability of the previous block (in the memory
|
|
|
|
+ * space)
|
|
|
|
+ *
|
|
|
|
+ * \param ptr The pointer to the data part of the previous memory block.
|
|
|
|
+ * \param previous_size_availability The size for the data part of the previous
|
|
|
|
+ * memory block on data layout level.
|
|
|
|
+ */
|
|
size_t get_previous_size_availability(void *ptr);
|
|
size_t get_previous_size_availability(void *ptr);
|
|
|
|
|
|
/**
|
|
/**
|