Adapted from MIT-licensed PL_MPEG by Dominic Szablewski. Original C input/attribution: third_party/pl_mpeg. This is a separate Jai implementation using layouts and checked bounds/I/O; no Jai port input.
buffer_create_with_memory :: (memory: [] u8, free_when_done: bool) -> *Buffer
Parameters
- memory: [] u8
- free_when_done: bool