bson_reader_new_from_handle(3)

bson_reader_new_from_handle3

Usage

bson_reader_t *
bson_reader_new_from_handle (void *handle,
                             bson_reader_read_func_t rf,
                             bson_reader_destroy_func_t df);

Parameters

•

handle: A user-provided pointer or NULL.

•

rf: A bson_reader_read_func_t.

•

df: A bson_reader_destroy_func_t.

Overview

This function allows for a pluggable data stream for the reader. This can be used to read from sockets, files, memory, or other arbitrary sources.

Returns

A newly allocated bson_reader_t if successful; otherwise NULL.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.