mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@@ -21,6 +21,7 @@ pub fn (_str string) to_wide() &u16 {
|
||||
}
|
||||
}
|
||||
|
||||
[unsafe]
|
||||
pub fn string_from_wide(_wstr &u16) string {
|
||||
$if windows {
|
||||
unsafe {
|
||||
@@ -32,6 +33,7 @@ pub fn string_from_wide(_wstr &u16) string {
|
||||
}
|
||||
}
|
||||
|
||||
[unsafe]
|
||||
pub fn string_from_wide2(_wstr &u16, len int) string {
|
||||
$if windows {
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user