Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arena

Warning

Still in development.

Small fixed-size arena allocator.

What it provides

  • A single fixed-capacity arena backed by calloc
  • Pointer-safe allocation with overflow and out-of-memory checks
  • Alignment suitable for normal C objects
  • Helpers for copying byte ranges and formatting integers into the arena

Build And Test

make run

Notes

  • arena_string() copies raw bytes and does not append a terminator.
  • arena_string_with_null() copies bytes and appends '\0'.
  • arena_free() resets the arena structure after releasing memory.

License

Unlicense.

About

Some arena allocators (only fixed size available right now).

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages