fix v.js
parent
1f6535afb0
commit
9385ed27ae
|
@ -126,7 +126,7 @@ pub fn (b []byte) hex() string {
|
||||||
return 'sdf'
|
return 'sdf'
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (arr mut array) _push_many(val voidptr, size int) {
|
pub fn (arr mut array) push_many(val voidptr, size int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn free(voidptr) {
|
pub fn free(voidptr) {
|
||||||
|
|
|
@ -18,13 +18,13 @@ pub fn new_builder(initial_size int) Builder {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (b mut Builder) write(s string) {
|
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.buf << []byte(s) // TODO
|
||||||
b.len += s.len
|
b.len += s.len
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (b mut Builder) writeln(s string) {
|
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 << []byte(s) // TODO
|
||||||
b.buf << `\n`
|
b.buf << `\n`
|
||||||
b.len += s.len + 1
|
b.len += s.len + 1
|
||||||
|
|
Loading…
Reference in New Issue