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