1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: add examples/gg/random.v demonstrating how to stream images/pixels

This commit is contained in:
Delyan Angelov
2021-06-24 17:45:14 +03:00
parent 4bfe76123a
commit b2391424d9
5 changed files with 135 additions and 5 deletions

View File

@@ -16,6 +16,10 @@ pub fn ptr_str(ptr voidptr) string {
return buf1
}
pub fn (x size_t) str() string {
return u64(x).str()
}
pub fn (cptr &char) str() string {
return u64(cptr).hex()
}