litert::Newlocator

#include <litert_buffer_ref.h>

A memory allocator based on new and delete.

Summary

Details
Template Parameters
ByteT
The byte type of the buffer.

Public functions

operator()(ByteT *d)
void
Deletes the given array.
operator()(size_t bytes)
ByteT *
Allocates an array of the specified size.

Public functions

operator()

void litert::Newlocator::operator()(
  ByteT *d
)

Deletes the given array.

operator()

ByteT * litert::Newlocator::operator()(
  size_t bytes
)

Allocates an array of the specified size.

Details
Parameters
bytes
The size of the array in bytes.
Returns
A pointer to the allocated array.