Decode a BSON 'C' string to python str.
(data: Any, view: Any, position: int, opts: CodecOptions[Any])
| 267 | |
| 268 | |
| 269 | def _get_c_string(data: Any, view: Any, position: int, opts: CodecOptions[Any]) -> Tuple[str, int]: |
| 270 | """Decode a BSON 'C' string to python str.""" |
| 271 | end = data.index(b"\x00", position) |
| 272 | return _utf_8_decode(view[position:end], opts.unicode_decode_error_handler, True)[0], end + 1 |
| 273 | |
| 274 | |
| 275 | def _get_float( |
no test coverage detected