Functions
fn deinit(self: *EnvMap) void
Free the backing storage of the map, as well as all of the stored keys and valu…
Free the backing storage of the map, as well as all of the stored keys and values.
fn get(self: EnvMap, key: []const u8) ?[]const u8
Return the map’s copy of the value associated with a key. The returned string …
Return the map’s copy of the value associated with a key. The returned string is invalidated if this key is removed from the map. On Windows
key
must be a valid UTF-8 string.fn getPtr(self: EnvMap, key: []const u8) ?*[]const u8
Find the address of the value associated with a key. The returned pointer is in…
Find the address of the value associated with a key. The returned pointer is invalidated if the map resizes. On Windows
key
must be a valid UTF-8 string.fn init(allocator: Allocator) EnvMap
Create a EnvMap backed by a specific allocator. That allocator will be used for…
Create a EnvMap backed by a specific allocator. That allocator will be used for both backing allocations and string deduplication.
fn put(self: *EnvMap, key: []const u8, value: []const u8) !void
key
andvalue
are copied into the EnvMap. On Windowskey
must be a valid …key
andvalue
are copied into the EnvMap. On Windowskey
must be a valid UTF-8 string.