Module brotli::enc::combined_alloc
source ยท Macrosยง
- implement_allocator ๐
Structsยง
Traitsยง
Functionsยง
- alloc_default ๐Helper function to create an empty allocator object
- alloc_if ๐Helper function to allocate memory or return a default value if the condition is false
- alloc_or_default ๐Helper function to allocate memory or return a default value when the size is 0.
- allocate ๐Helper function to allocate memory with the given allocator (may crash if the
len
is 0).