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

builtin: voidptr.str() and byteptr.str()

This commit is contained in:
ka-weihe
2020-05-04 13:20:18 +02:00
committed by GitHub
parent d75f286230
commit a72f3ed0c7
2 changed files with 12 additions and 0 deletions

View File

@@ -345,6 +345,14 @@ pub fn (nn i64) hex() string {
return u64(nn).hex()
}
pub fn (nn voidptr) str() string {
return u64(nn).hex()
}
pub fn (nn byteptr) str() string {
return u64(nn).hex()
}
// ----- utilities functions -----
pub fn (a []byte) contains(val byte) bool {