![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | Static |
Public Types | |
| using | size_type = std::size_t |
Static Public Member Functions | |
| static const StringData & | make (EvalMemory &mem, std::string_view s) |
| static StringData & | alloc (EvalMemory &mem, size_t size) |
| static StringData & | make (std::pmr::memory_resource &resource, std::string_view s) |
Public Attributes | |
| size_type | size_ |
| char | data_ [] |
|
static |
Allocate StringData on the (possibly) GC-managed heap.
| size | Length of the string (without the NUL terminator). |
|
static |
Allocate StringData on the (possibly) GC-managed heap and copy the contents of s to it.