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

array/map: remove _get(), _push() etc

This commit is contained in:
Alexander Medvednikov
2019-10-10 01:15:19 +03:00
parent cdfb7428c8
commit 1f6535afb0
3 changed files with 4 additions and 58 deletions

View File

@ -18,13 +18,13 @@ pub fn new_builder(initial_size int) Builder {
}
pub fn (b mut Builder) write(s string) {
b.buf._push_many(s.str, s.len)
b.buf.push_many(s.str, s.len)
//b.buf << []byte(s) // TODO
b.len += s.len
}
pub fn (b mut Builder) writeln(s string) {
b.buf._push_many(s.str, s.len)
b.buf.push_many(s.str, s.len)
//b.buf << []byte(s) // TODO
b.buf << `\n`
b.len += s.len + 1