bson_reader_read_func_t(3)

bson_reader_read_func_t3

Usage

typedef ssize_t (*bson_reader_read_func_t) (void *handle,
                                            void *buf,
                                            size_t count);

Parameters

•

handle: The handle to read from.

•

buf: The buffer to read into.

•

count: The number of bytes to read.

Overview

A callback function that will be called by bson_reader_t to read the next chunk of data from the underlying opaque file descriptor.

This function is meant to operate similar to the read(2) function as part of libc on UNIX-like systems.

Returns

0 for end of stream.

-1 for a failure on read.

A value greater than zero for the number of bytes read into buf.

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.