mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings: builder: write_b()
This commit is contained in:

committed by
Alexander Medvednikov

parent
55f32fc413
commit
5a8c07dcf5
@ -17,6 +17,11 @@ pub fn new_builder(initial_size int) Builder {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) write_b(data byte) {
|
||||
b.buf << data
|
||||
b.len += 1
|
||||
}
|
||||
|
||||
pub fn (b mut Builder) write(s string) {
|
||||
b.buf.push_many(s.str, s.len)
|
||||
//b.buf << []byte(s) // TODO
|
||||
|
Reference in New Issue
Block a user