zig-help

21196 threads · Page 392 of 424

Checking whether types can coerce to each other 17 messages
Float as binary 13 messages
Do vectors have a guaranteed layout or alignment? 14 messages
seekTo not working as expected 4 messages
file.reader() doens't exist 7 messages
Struct fields aren't rearranged to eliminate padding 13 messages
Zig CC does not produce proper PDB symbols just produces a blank .pdb file 2 messages
Packed structs are broken? 49 messages
Compiler
How to ensure alignOf(Int) == alignOf(StructWithInt)? 2 messages
What's the difference between StringHashMap and StringArrayHashMaps? 6 messages
Tutorials or guides covering memory allocators in Zig 8 messages
New User Answered
failing to build zig from source using option B 90 messages
Padding and struct assignment 14 messages
[Struct design] handling allocator field 8 messages
New User
How to cast ?*anyopaque to *[]u8? 14 messages
Is there a good pattern for using enums as bitmasks that don't involve wrapping around another type? 5 messages
How to change embedFile type from *const[640.0]u8 to *const[320.0]u16 ? 8 messages
New User
Zig error handling, printing |err| content? 8 messages
How to handle C dependencies when using zig to crosscompile a C++ project for raspberry PI 6 messages
Conditionally add a zero-sized type to extern struct? 7 messages
How to manage a project test suite 3 messages
compile error with a simple SDL_Init call 9 messages
Is there a way to mark extern c function as pure? 8 messages
Standard Library
Is there a `comptime if`, equivalent to `if constexpr` in c++? 19 messages
What zig regex libraries are available? Is it planned in stdlib? 5 messages
insert string as code 3 messages
Help me understand - function pointers must be single pointers 2 messages
How do I convert u64 to []u8? 4 messages
Specify zig output file using `build-(obj|lib|exe)` 19 messages
[SOLVED] how to identify or check unused functions and declarations? 15 messages
Is there a way to bundle static resources into my binary? 3 messages
[SOLVED] Is intCast a packed struct not working yet? 3 messages
Answered
Passing two-dimensional array to function 13 messages
New User
[SOLVED] How to allocate `*anyopaque` point to given size block without knowing the underlying type? 4 messages
How to get build.zig to read headers from header install location? 8 messages
New User
convert [4]u8 to u32 27 messages
SOLVED Bit tweaks ... I know they're considered bad ... but what is reasonable way in zig? 65 messages
How to stop IterableDir.walk from walking into `.git` directories 16 messages
How is the `active` field on a simple union detected ? 4 messages
[SOLVED] What is the memory layout of an optional slice? 12 messages
How is sentinel termination useful? Whats the difference between many pointers and slices? 14 messages
Run each test case as separate command on `zig build test` to allow wrapping with Valgrind 55 messages
When using `test`, no package named 'zig-network' available in package 'root' 7 messages
Compiler New User
Connecting to a std.net.Address 5 messages
Why doesn't u1 implicitly convert to bool? 58 messages
Safe navigation 10 messages
Is it possible to have a undefined optional that is not null? 4 messages
How to detach a childprocess (on linux)? 80 messages
LRU cache in std? 3 messages
Error while formatting an error type 16 messages