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

@@ -172,7 +172,7 @@ pub struct Context {
pub:
cfg Config // adsasdas
mut:
print_buf []byte
print_buf []u8
paused bool
enable_su bool
enable_rgb bool

View File

@@ -5,7 +5,7 @@ module ui
struct ExtraContext {
mut:
read_buf []byte
read_buf []u8
// read_all_bytes causes all the raw bytes to be read as one event unit.
// This is cruicial for UTF-8 support since Unicode codepoints can span several bytes.
read_all_bytes bool = true
@@ -17,7 +17,7 @@ pub fn init(cfg Config) &Context {
mut ctx := &Context{
cfg: cfg
}
ctx.read_buf = []byte{cap: cfg.buffer_size}
ctx.read_buf = []u8{cap: cfg.buffer_size}
// lmao
unsafe {