![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | Statistics |
Public Member Functions | |
| EvalMemory (const EvalMemory &)=delete | |
| EvalMemory (EvalMemory &&)=delete | |
| EvalMemory & | operator= (const EvalMemory &)=delete |
| EvalMemory & | operator= (EvalMemory &&)=delete |
| void * | allocBytes (size_t n) |
| template<typename T, std::size_t N = 0> | |
| void * | allocBytes (size_t count) |
| void * | allocBytesAtomic (size_t n) |
| template<typename T, std::size_t N = 0> | |
| void * | allocBytesAtomic (size_t count) |
| Value * | allocValue () |
| Env & | allocEnv (size_t size) |
| Bindings * | allocBindings (size_t capacity) |
| BindingsBuilder | buildBindings (SymbolTable &symbols, size_t capacity) |
| ListBuilder | buildList (size_t size) |
| const Statistics & | getStats () const & |
Public Attributes | |
| Exprs | exprs |
|
inline |
Allocates count * sizeof(T) + N contiguous bytes.
| bad_alloc | if the computation would overflow. |
|
inline |
Note: Various places expect the allocated memory to be zeroed.
|
inline |
Allocates count * sizeof(T) + N contiguous bytes that the garbage collector does not scan for pointers. The memory is not zeroed.
| bad_alloc | if the computation would overflow. |
|
inline |
Allocates n bytes that the garbage collector does not scan for pointers. Unlike allocBytes(), the memory is not zeroed.
| Exprs nix::EvalMemory::exprs |
Storage for the AST nodes