test: update b_stream usage
This commit is contained in:
@@ -15,11 +15,8 @@ int main(int argc, const char **argv)
|
||||
}
|
||||
|
||||
size_t nr_read = 0;
|
||||
b_stream *dest_stream;
|
||||
b_stream_pipeline *pipeline;
|
||||
b_status status = b_file_open_stream(dest, &dest_stream);
|
||||
b_stream_pipeline_create(1024, &pipeline);
|
||||
b_stream_read_all_bytes_s(b_stdin, dest_stream, pipeline, &nr_read);
|
||||
b_stream_buffer *buf = b_stream_buffer_create_dynamic(1024);
|
||||
b_stream_read_all_bytes_s(b_stdin, dest, buf, &nr_read);
|
||||
|
||||
printf("done. read %zu bytes total.\n", nr_read);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user