Owning Heap Buffers
Allocate and free memory you control.
Taking the Wheel
Sometimes you want direct control over a block of heap memory. Owning a buffer means you allocate it and decide when it goes away. 🛠️
What a Buffer Is
A buffer is a contiguous chunk of heap memory holding many elements in a row, like the storage behind a list of numbers.
All lessons in this course
- Stack vs Heap, Simply
- Pointers Without Fear
- Owning Heap Buffers
- Avoiding Common Memory Bugs