cost 158 ms
Incorrect initial capacity for ArrayList

I've been going through ziglearn and have made my way to ArrayList. I understand the example given there but when I try something a bit more complex I ...

2023-01-24 15:13:57   1   30    zig  
Convert i32 into f32

How can I convert a i32 into a f32 in Zig Language? I want to count appearances of values in a for loop and afterwards get the percentages in a smoot ...

Checking if a pointer in NULL

Is there a nicer way of achieving the same result as the following code in a nicer way? if (window == @intToPtr(?*c.GLFWwindow, 0)) I want to check ...

2022-12-27 09:49:43   1   14    zig  
zig externs when using zig test for wasm

I have a Zig codebase that I'm compiling to WebAssembly with a build.zig like this: Inside src/main.zig there's an extern that marks a function pro ...

2022-12-06 20:06:41   1   46    zig  
How to insert a u32 into a u8 array in Zig?

I have a u8 buffer that stores a series of values including the RGB components from two u32 values (of which only 24 bits are used). I'm currently us ...

2022-12-06 10:42:35   1   50    zig  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM