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

all: replace []byte with []u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:35:35 +03:00
parent 0527ac633e
commit fb192d949b
164 changed files with 533 additions and 533 deletions

View File

@ -18,7 +18,7 @@ fn C.AAsset_read(&C.AAsset, voidptr, int) int
fn C.AAsset_close(&C.AAsset)
pub fn read_apk_asset(file string) ?[]byte {
pub fn read_apk_asset(file string) ?[]u8 {
$if apk {
act := &C.ANativeActivity(C.sapp_android_get_native_activity())
if isnil(act) {
@ -29,7 +29,7 @@ pub fn read_apk_asset(file string) ?[]byte {
return error('File `$file` not found')
}
len := C.AAsset_getLength(asset)
buf := []byte{len: len}
buf := []u8{len: len}
for {
if C.AAsset_read(asset, buf.data, len) > 0 {
break