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
@ -13,7 +13,7 @@ const (
|
||||
)
|
||||
|
||||
pub fn read(bytes_needed int) ?[]byte {
|
||||
mut buffer := malloc(bytes_needed)
|
||||
buffer := malloc(bytes_needed)
|
||||
mut bytes_read := 0
|
||||
// getrandom syscall wont block if requesting <= 256 bytes
|
||||
if bytes_needed > read_batch_size {
|
||||
|
Reference in New Issue
Block a user