pub fn Auto(comptime K: type, comptime V: type) type
An `ArrayHashMap` with default hash and equal functions.
- Kind
- type function
- Module
std.array_hash_map
pub fn AutoContext(comptime K: type) type
- Kind
- type function
- Module
std.array_hash_map
- Kind
- constant
- Module
std.array_hash_map
- Kind
- constant
- Module
std.array_hash_map
pub fn autoEqlIsCheap(comptime K: type) bool
- Kind
- function
- Module
std.array_hash_map
pub fn Custom(comptime K: type, comptime V: type, comptime Context: type, comptime store_hash: bool) type
A hash table of keys and values, each stored sequentially.
- Kind
- type function
- Module
std.array_hash_map
pub fn eqlString(a: []const u8, b: []const u8) bool
- Kind
- function
- Module
std.array_hash_map
pub fn getAutoEqlFn(comptime K: type, comptime Context: type) (fn (Context, K, K, usize) bool)
- Kind
- function
- Module
std.array_hash_map
pub fn getAutoHashFn(comptime K: type, comptime Context: type) (fn (Context, K) u32)
- Kind
- function
- Module
std.array_hash_map
pub fn getAutoHashStratFn(comptime K: type, comptime Context: type, comptime strategy: std.hash.Strategy) (fn (Context, K) u32)
- Kind
- function
- Module
std.array_hash_map
pub fn getHashPtrAddrFn(comptime K: type, comptime Context: type) (fn (Context, K) u32)
- Kind
- function
- Module
std.array_hash_map
pub fn getTrivialEqlFn(comptime K: type, comptime Context: type) (fn (Context, K, K) bool)
- Kind
- function
- Module
std.array_hash_map
pub fn hashString(s: []const u8) u32
- Kind
- function
- Module
std.array_hash_map
pub fn String(comptime V: type) type
An `ArrayHashMap` with strings as keys.
- Kind
- type function
- Module
std.array_hash_map
- Kind
- struct
- Module
std.array_hash_map
pub fn eql(self: @This(), a: []const u8, b: []const u8, b_index: usize) bool
- Kind
- function
- Module
std.array_hash_map
pub fn hash(self: @This(), s: []const u8) u32
- Kind
- function
- Module
std.array_hash_map
pub fn deinit(self: *@This()) void
- Kind
- function
- Module
std.BitStack
pub fn ensureTotalCapacity(self: *@This(), bit_capacity: usize) Allocator.Error!void
- Kind
- function
- Module
std.BitStack
pub fn init(allocator: Allocator) @This()
- Kind
- function
- Module
std.BitStack
pub fn peek(self: *const @This()) u1
- Kind
- function
- Module
std.BitStack
pub fn peekWithState(buf: []const u8, bit_len: usize) u1
Standalone function for working with a fixed-size buffer.
- Kind
- function
- Module
std.BitStack
pub fn pop(self: *@This()) u1
- Kind
- function
- Module
std.BitStack
pub fn popWithState(buf: []const u8, bit_len: *usize) u1
Standalone function for working with a fixed-size buffer.
- Kind
- function
- Module
std.BitStack
pub fn push(self: *@This(), b: u1) Allocator.Error!void
- Kind
- function
- Module
std.BitStack
pub fn pushWithStateAssumeCapacity(buf: []u8, bit_len: *usize, b: u1) void
Standalone function for working with a fixed-size buffer.
- Kind
- function
- Module
std.BitStack
pub fn count(self: BufMap) BufMapHashMap.Size
Returns the number of KV pairs stored in the map.
- Kind
- function
- Module
std.BufMap
pub fn deinit(self: *BufMap) void
Free the backing storage of the map, as well as all of the stored keys and values.
- Kind
- function
- Module
std.BufMap
pub fn get(self: BufMap, key: []const u8) ?[]const u8
Return the map's copy of the value associated with a key.
- Kind
- function
- Module
std.BufMap
pub fn getPtr(self: BufMap, key: []const u8) ?*[]const u8
Find the address of the value associated with a key.
- Kind
- function
- Module
std.BufMap
pub fn init(allocator: Allocator) BufMap
Create a BufMap backed by a specific allocator.
- Kind
- function
- Module
std.BufMap
pub fn iterator(self: *const BufMap) BufMapHashMap.Iterator
Returns an iterator over entries in the map.
- Kind
- function
- Module
std.BufMap
pub fn put(self: *BufMap, key: []const u8, value: []const u8) !void
`key` and `value` are copied into the BufMap.
- Kind
- function
- Module
std.BufMap
pub fn putMove(self: *BufMap, key: []u8, value: []u8) !void
Same as `put` but the key and value become owned by the BufMap rather than being copied.
- Kind
- function
- Module
std.BufMap
pub fn remove(self: *BufMap, key: []const u8) void
Removes the item from the map and frees its value.
- Kind
- function
- Module
std.BufMap
pub fn allocator(self: *const BufSet) Allocator
Get the allocator used by this set.
- Kind
- function
- Module
std.BufSet
pub fn clone(self: *const BufSet) Allocator.Error!BufSet
Creates a copy of this BufSet, using the same allocator.
- Kind
- function
- Module
std.BufSet
pub fn cloneWithAllocator(self: *const BufSet, new_allocator: Allocator) Allocator.Error!BufSet
Creates a copy of this BufSet, using a specified allocator.
- Kind
- function
- Module
std.BufSet
pub fn contains(self: BufSet, value: []const u8) bool
Check if the set contains an item matching the passed string.
- Kind
- function
- Module
std.BufSet
pub fn count(self: *const BufSet) usize
Returns the number of items stored in the set.
- Kind
- function
- Module
std.BufSet
pub fn deinit(self: *BufSet) void
Free a BufSet along with all stored keys.
- Kind
- function
- Module
std.BufSet
pub fn init(a: Allocator) BufSet
Create a BufSet using an allocator.
- Kind
- function
- Module
std.BufSet
pub fn insert(self: *BufSet, value: []const u8) !void
Insert an item into the BufSet.
- Kind
- function
- Module
std.BufSet
- Kind
- type
- Module
std.BufSet
pub fn iterator(self: *const BufSet) Iterator
Returns an iterator over the items stored in the set.
- Kind
- function
- Module
std.BufSet
pub fn remove(self: *BufSet, value: []const u8) void
Remove an item from the set.
- Kind
- function
- Module
std.BufSet
pub fn next(self: *Tokenizer) ?Token
- Kind
- function
- Module
std.Build.Cache.DepTokenizer
- Kind
- union
- Module
std.Build.Cache.DepTokenizer
pub fn format(token: Token, w: *Io.Writer) Io.Writer.Error!void
- Kind
- function
- Module
std.Build.Cache.DepTokenizer
- Kind
- struct
- Module
std.Build.Cache.DepTokenizer
- Kind
- struct
- Module
std.Build.Cache.DepTokenizer
pub fn resolve(self: Token, gpa: Allocator, list: *std.ArrayList(u8)) error
Resolve escapes in target or prereq.
- Kind
- function
- Module
std.Build.Cache.DepTokenizer
pub fn clone(d: Directory, arena: Allocator) Allocator.Error!Directory
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn closeAndFree(self: *Directory, gpa: Allocator, io: Io) void
Whether or not the handle should be closed, or the path should be freed is determined by usage, however this function is provided for convenience if it happens to be what the caller needs.
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn cwd() Directory
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn eql(self: Directory, other: Directory) bool
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn format(self: Directory, writer: *std.Io.Writer) std.Io.Writer.Error!void
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn join(self: Directory, allocator: Allocator, paths: []const []const u8) ![]u8
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn joinZ(self: Directory, allocator: Allocator, paths: []const []const u8) ![:0]u8
- Kind
- function
- Module
std.Build.Cache.Directory
pub fn packageOptions(b: *std.Build, wc: *Configuration.Wip) Allocator.Error!void
- Kind
- function
- Module
std.Build.Serialize
pub fn systemIntegrationOptions(graph: *std.Build.Graph, wc: *Configuration.Wip) Allocator.Error!void
- Kind
- function
- Module
std.Build.Serialize
pub fn write(b: *std.Build, wc: *Configuration.Wip, writer: *std.Io.Writer) !void
- Kind
- function
- Module
std.Build.Serialize
- Kind
- constant
- Module
std.Build.Step.CheckFile
pub fn create(owner: *std.Build, file: std.Build.LazyPath, options: Options) *CheckFile
- Kind
- function
- Module
std.Build.Step.CheckFile
- Kind
- struct
- Module
std.Build.Step.CheckFile
pub fn setName(check_file: *CheckFile, name: []const u8) void
- Kind
- function
- Module
std.Build.Step.CheckFile
- Kind
- constant
- Module
std.Build.Step.Fail
pub fn create(owner: *std.Build, error_msg: []const u8) *Fail
- Kind
- function
- Module
std.Build.Step.Fail
- Kind
- constant
- Module
std.Build.Step.FindProgram
pub fn create(owner: *std.Build, options: Options) *FindProgram
- Kind
- function
- Module
std.Build.Step.FindProgram
- Kind
- struct
- Module
std.Build.Step.FindProgram
- Kind
- constant
- Module
std.Build.Step.Fmt
pub fn create(owner: *std.Build, options: Options) *Fmt
- Kind
- function
- Module
std.Build.Step.Fmt
- Kind
- struct
- Module
std.Build.Step.Fmt
- Kind
- constant
- Module
std.Build.Step.InstallArtifact
pub fn create(owner: *std.Build, artifact: *Step.Compile, options: Options) *InstallArtifact
- Kind
- function
- Module
std.Build.Step.InstallArtifact
- Kind
- struct
- Module
std.Build.Step.InstallArtifact
- Kind
- union
- Module
std.Build.Step.InstallArtifact
- Kind
- constant
- Module
std.Build.Step.InstallDir
pub fn create(owner: *std.Build, options: Options) *InstallDir
- Kind
- function
- Module
std.Build.Step.InstallDir
- Kind
- struct
- Module
std.Build.Step.InstallDir
- Kind
- constant
- Module
std.Build.Step.InstallFile
pub fn create(owner: *std.Build, source: LazyPath, dir: InstallDir, dest_rel_path: []const u8) *InstallFile
- Kind
- function
- Module
std.Build.Step.InstallFile
- Kind
- struct
- Module
std.Build.Step.ObjCopy
pub fn addSection(oc: *ObjCopy, section_name: []const u8, options: AddSectionOptions) void
- Kind
- function
- Module
std.Build.Step.ObjCopy
- Kind
- struct
- Module
std.Build.Step.ObjCopy
- Kind
- constant
- Module
std.Build.Step.ObjCopy
pub fn create(owner: *std.Build, input_file: std.Build.LazyPath, options: Options) *ObjCopy
- Kind
- function
- Module
std.Build.Step.ObjCopy
- Kind
- struct
- Module
std.Build.Step.ObjCopy
- Kind
- type
- Module
std.Build.Step.ObjCopy
pub fn getOutput(oc: *const ObjCopy) std.Build.LazyPath
- Kind
- function
- Module
std.Build.Step.ObjCopy
pub fn getOutputSeparatedDebug(oc: *const ObjCopy) ?std.Build.LazyPath
- Kind
- function
- Module
std.Build.Step.ObjCopy
- Kind
- struct
- Module
std.Build.Step.ObjCopy
- Kind
- struct
- Module
std.Build.Step.ObjCopy
- Kind
- type
- Module
std.Build.Step.ObjCopy
- Kind
- type
- Module
std.Build.Step.ObjCopy
pub fn updateSection(oc: *ObjCopy, section_name: []const u8, options: UpdateSectionOptions) void
- Kind
- function
- Module
std.Build.Step.ObjCopy
- Kind
- struct
- Module
std.Build.Step.ObjCopy
pub fn addOption(options: *Options, comptime T: type, name: []const u8, value: T) void
- Kind
- function
- Module
std.Build.Step.Options
pub fn addOptionPath(options: *Options, name: []const u8, path: LazyPath) void
The added option has type `[]const u8` and value of the provided file path.
- Kind
- function
- Module
std.Build.Step.Options
pub fn addOptionPathDirectory(options: *Options, name: []const u8, path: LazyPath) void
The added option has type `[]const u8` and value of the provided directory path.
- Kind
- function
- Module
std.Build.Step.Options
pub fn addOptionPathUntracked(options: *Options, name: []const u8, path: LazyPath) void
The added option has type `[]const u8` and value of the provided path.
- Kind
- function
- Module
std.Build.Step.Options
- Kind
- constant
- Module
std.Build.Step.Options
pub fn create(owner: *std.Build) *Options
- Kind
- function
- Module
std.Build.Step.Options
pub fn createModule(options: *Options) *std.Build.Module
- Kind
- function
- Module
std.Build.Step.Options
pub fn getOutput(options: *Options) LazyPath
Returns the main artifact of this Build Step which is a Zig source file generated from the key-value pairs of the Options.
- Kind
- function
- Module
std.Build.Step.Options
- Kind
- struct
- Module
std.Build.Step.Options
pub fn addAfterIncludePath(translate_c: *TranslateC, lazy_path: LazyPath) void
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addCFlags(translate_c: *TranslateC, args: []const []const u8) void
Append arbitrary C compiler CLI arguments to the translation unit.
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addCheckFile(translate_c: *TranslateC, expected_matches: []const []const u8) *Step.CheckFile
- Kind
- function
- Module
std.Build.Step.TranslateC
- Kind
- struct
- Module
std.Build.Step.TranslateC
pub fn addFrameworkPath(translate_c: *TranslateC, directory_path: LazyPath) void
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addIncludePath(translate_c: *TranslateC, lazy_path: LazyPath) void
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module
Creates a module from the translated source and adds it to the package's module set making it available to other packages which depend on this one. `createModule` can be used instead to create a private module.
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addSystemFrameworkPath(translate_c: *TranslateC, directory_path: LazyPath) void
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn addSystemIncludePath(translate_c: *TranslateC, lazy_path: LazyPath) void
- Kind
- function
- Module
std.Build.Step.TranslateC
- Kind
- constant
- Module
std.Build.Step.TranslateC
pub fn create(owner: *std.Build, options: Options) *TranslateC
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn createModule(translate_c: *TranslateC) *std.Build.Module
Creates a private module from the translated source to be used by the current package, but not exposed to other packages depending on this one. `addModule` can be used instead to create a public module.
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn defineCMacro(translate_c: *TranslateC, name: []const u8, value: ?[]const u8) void
If the value is omitted, it is set to 1. `name` and `value` need not live longer than the function call.
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn defineCMacroRaw(translate_c: *TranslateC, name_and_value: []const u8) void
name_and_value looks like [name]=[value].
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn getOutput(translate_c: *TranslateC) std.Build.LazyPath
- Kind
- function
- Module
std.Build.Step.TranslateC
pub fn linkSystemLibrary(translate_c: *TranslateC, name: []const u8, options: std.Build.Module.LinkSystemLibraryOptions) void
- Kind
- function
- Module
std.Build.Step.TranslateC
- Kind
- struct
- Module
std.Build.Step.TranslateC
pub fn addBytesToSource(usf: *UpdateSourceFiles, contents: []const u8, sub_path: []const u8) void
Overwrites a path relative to the package root with the provided bytes.
- Kind
- function
- Module
std.Build.Step.UpdateSourceFiles
pub fn addCopyFileToSource(usf: *UpdateSourceFiles, src_file: std.Build.LazyPath, sub_path: []const u8) void
Overwrites a path relative to the build root with the contents of another file.
- Kind
- function
- Module
std.Build.Step.UpdateSourceFiles
- Kind
- constant
- Module
std.Build.Step.UpdateSourceFiles
- Kind
- type
- Module
std.Build.Step.UpdateSourceFiles
pub fn create(owner: *std.Build) *UpdateSourceFiles
- Kind
- function
- Module
std.Build.Step.UpdateSourceFiles
- Kind
- type
- Module
std.Build.Step.UpdateSourceFiles
pub fn add(wf: *WriteFile, sub_path: []const u8, contents: []const u8) std.Build.LazyPath
Writes `contents` to a file at `sub_path` relative to the output directory. `sub_path` may be a basename, or it may include subdirectories, which are created as needed.
- Kind
- function
- Module
std.Build.Step.WriteFile
pub fn addCopyDirectory(wf: *WriteFile, src_path: std.Build.LazyPath, sub_path: []const u8, options: CopyDirectoryOptions) std.Build.LazyPath
Copy files matching the specified exclude/include patterns to the specified subdirectory relative to this step's generated directory.
- Kind
- function
- Module
std.Build.Step.WriteFile
pub fn addCopyFile(wf: *WriteFile, src_file: std.Build.LazyPath, sub_path: []const u8) std.Build.LazyPath
Copies the provided file to `sub_path` relative to the output directory. `sub_path` may be a basename, or it may include subdirectories, which are created as needed.
- Kind
- function
- Module
std.Build.Step.WriteFile
- Kind
- constant
- Module
std.Build.Step.WriteFile
- Kind
- struct
- Module
std.Build.Step.WriteFile
- Kind
- struct
- Module
std.Build.Step.WriteFile
pub fn create(owner: *std.Build) *WriteFile
- Kind
- function
- Module
std.Build.Step.WriteFile
- Kind
- struct
- Module
std.Build.Step.WriteFile
- Kind
- type
- Module
std.Build.Step.WriteFile
pub fn getDirectory(wf: *WriteFile) std.Build.LazyPath
Returns a `LazyPath` representing the base directory that contains all the files from this `WriteFile`.
- Kind
- function
- Module
std.Build.Step.WriteFile
- Kind
- union
- Module
std.Build.Step.WriteFile
gzip and zlib are here.
- Kind
- namespace
- Module
std.compress
- Kind
- namespace
- Module
std.compress
- Kind
- namespace
- Module
std.compress
- Kind
- namespace
- Module
std.compress
- Kind
- namespace
- Module
std.compress
Deflate is a lossless data compression file format that uses a combination of LZ77 and Huffman coding.
- Kind
- struct
- Module
std.compress.flate
Container of the deflate bit stream body.
- Kind
- enum
- Module
std.compress.flate
- Kind
- error set
- Module
std.compress.flate
- Kind
- union
- Module
std.compress.flate
pub fn container(h: Hasher) Container
- Kind
- function
- Module
std.compress.flate
pub fn init(containter: Container) Hasher
- Kind
- function
- Module
std.compress.flate
pub fn update(h: *Hasher, buf: []const u8) void
- Kind
- function
- Module
std.compress.flate
- Kind
- constant
- Module
std.compress.flate
- Kind
- union
- Module
std.compress.flate
pub fn container(m: Metadata) Container
- Kind
- function
- Module
std.compress.flate
pub fn init(containter: Container) Metadata
- Kind
- function
- Module
std.compress.flate
pub fn size(w: Container) usize
- Kind
- function
- Module
std.compress.flate
Inflate is the decoding process that consumes a Deflate bitstream and produces the original full-size data.
- Kind
- struct
- Module
std.compress.flate
- Kind
- constant
- Module
std.compress.flate
When compressing and decompressing, the provided buffer is used as the history window, so it must be at least this size.
- Kind
- constant
- Module
std.compress.flate
- Kind
- type
- Module
std.compress.flate.Decompress
- Kind
- type
- Module
std.compress.flate.Decompress
- Kind
- type
- Module
std.compress.flate.Decompress
pub fn init(input: *Reader, container: Container, buffer: []u8) Decompress
`input` buffer is asserted to be at least 10 bytes, or EOF before then.
- Kind
- function
- Module
std.compress.flate.Decompress
- Kind
- type
- Module
std.compress.flate.Decompress
- Kind
- struct
- Module
std.compress.flate.Decompress
An accumulating buffer for LZ sequences.
- Kind
- struct
- Module
std.compress.lzma2
pub fn appendByte(self: *AccumBuffer, allocator: Allocator, byte: u8) !void
- Kind
- function
- Module
std.compress.lzma2
pub fn appendLiteral(self: *AccumBuffer, allocator: Allocator, lit: u8, writer: *Writer) !void
Append a literal.
- Kind
- function
- Module
std.compress.lzma2
pub fn appendLz(self: *AccumBuffer, allocator: Allocator, len: usize, dist: usize, writer: *Writer) !void
Fetch an LZ sequence (length, distance) from inside the buffer.
- Kind
- function
- Module
std.compress.lzma2
pub fn deinit(self: *AccumBuffer, allocator: Allocator) void
- Kind
- function
- Module
std.compress.lzma2
pub fn finish(self: *AccumBuffer, writer: *Writer) !void
- Kind
- function
- Module
std.compress.lzma2
pub fn init(memlimit: usize) AccumBuffer
- Kind
- function
- Module
std.compress.lzma2
pub fn lastN(self: AccumBuffer, dist: usize) !u8
Retrieve the n-th last byte.
- Kind
- function
- Module
std.compress.lzma2
pub fn lastOr(self: AccumBuffer, lit: u8) u8
Retrieve the last byte or return a default.
- Kind
- function
- Module
std.compress.lzma2
pub fn reset(self: *AccumBuffer, writer: *Writer) !void
Reset the internal dictionary.
- Kind
- function
- Module
std.compress.lzma2
- Kind
- struct
- Module
std.compress.lzma2
pub fn decompress(d: *Decode, reader: *Reader, allocating: *Writer.Allocating) !u64
Returns how many compressed bytes were consumed.
- Kind
- function
- Module
std.compress.lzma2
pub fn deinit(self: *Decode, gpa: Allocator) void
- Kind
- function
- Module
std.compress.lzma2
pub fn init(gpa: Allocator) !Decode
- Kind
- function
- Module
std.compress.lzma2
- Kind
- struct
- Module
std.compress.xz
- Kind
- enum
- Module
std.compress.xz.Decompress
pub fn deinit(d: *Decompress) void
- Kind
- function
- Module
std.compress.xz.Decompress