mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings: use deprecated_after for the .write_bytes method
This commit is contained in:
parent
337e447cfb
commit
82f3ca2d55
@ -25,7 +25,8 @@ pub fn new_builder(initial_size int) Builder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write_bytes appends `bytes` to the accumulated buffer
|
// write_bytes appends `bytes` to the accumulated buffer
|
||||||
//[deprecated: 'use Builder.write_ptr() instead']
|
[deprecated: 'use Builder.write_ptr() instead']
|
||||||
|
[deprecated_after: '2021-04-18']
|
||||||
[unsafe]
|
[unsafe]
|
||||||
pub fn (mut b Builder) write_bytes(bytes byteptr, len int) {
|
pub fn (mut b Builder) write_bytes(bytes byteptr, len int) {
|
||||||
unsafe { b.write_ptr(bytes, len) }
|
unsafe { b.write_ptr(bytes, len) }
|
||||||
|
Loading…
Reference in New Issue
Block a user