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

cache builtin modules

This commit is contained in:
Alexander Medvednikov
2020-04-10 18:11:43 +02:00
parent c815f84722
commit f76931c01e
9 changed files with 73 additions and 18 deletions

View File

@ -10,12 +10,18 @@ const (
// NOTE: temp until we have []bytes(buff)
fn c_array_to_bytes_tmp(len, buffer voidptr) []byte {
mut arr := []byte
arr = make(len, 1, 1)
arr.data = buffer
/*
arr = array {
len: len
cap: 1
element_size: 1
data: buffer
}
*/
return arr
}