MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Make new stream using buffer in Mongo C driver

I find create stream using file path.(mongoc_stream_file_new_for_path)
But i want to use buffer.
To use mongoc_gridfs_bucket_upload_from_stream, I need to stream.
I have void *buffer and buffercount.
How can i create stream using buffer?