---
name: "bson_reader_set_read_func"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_reader_set_read_func"
---

# bson\_reader\_set\_read\_func(3)

## SYNOPSIS

```
void
bson_reader_set_read_func (bson_reader_t *reader, bson_reader_read_func_t func);
```

## PARAMETERS

- •

  **reader**: A *bson\_reader\_t*.

- •

  **func**: A *bson\_reader\_read\_func\_t*.

## DESCRIPTION

Sets the function to read more data from the underlying stream in a custom bson\_reader\_t.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
