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