DEV Community

Zisulin Morbrot
Zisulin Morbrot

Posted on

2

Zig Pointer Cheat Sheet

Zig Pointer Cheat Sheet for personal reference. Taken from ziglings #54

u8           |  one u8                                    

*u8          |  pointer to one u8                         

[2]u8        |  two u8s                                   

[*]u8        |  pointer to unknown number of u8s          

[*]const u8  |  pointer to unknown number of immutable u8s

*[2]u8       |  pointer to an array of 2 u8s              

*const [2]u8 |  pointer to an immutable array of 2 u8s    

[]u8         |  slice of u8s                              

[]const u8   |  slice of immutable u8s                    

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more