Skip to main content

Module alloc

Module alloc 

Source
Expand description

Custom allocator hooks for librtmp2

Mirrors src/core/alloc.h and src/core/alloc.c. Provides pluggable allocation functions with standard defaults.

Functions§

alloc_vec
Allocate a Vec-backed buffer (idiomatic Rust helper).
lrtmp2_calloc
Allocate zeroed memory for nmemb elements of size bytes each.
lrtmp2_free
Free memory.
lrtmp2_malloc
Allocate size bytes using the current allocator.
lrtmp2_realloc
Reallocate memory.
set_allocator
Set custom allocator functions.

Type Aliases§

AllocFn
Allocator function type.
FreeFn
Free function type.
ReallocFn
Reallocator function type.