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:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user