MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _op_msg_uncompressed

Function _op_msg_uncompressed

pymongo/message.py:377–387  ·  view source on GitHub ↗

Internal compressed OP_MSG message helper.

(
    flags: int,
    command: Mapping[str, Any],
    identifier: str,
    docs: Optional[list[Mapping[str, Any]]],
    opts: CodecOptions[Any],
)

Source from the content-addressed store, hash-verified

375
376
377def _op_msg_uncompressed(
378 flags: int,
379 command: Mapping[str, Any],
380 identifier: str,
381 docs: Optional[list[Mapping[str, Any]]],
382 opts: CodecOptions[Any],
383) -> tuple[int, bytes, int, int]:
384 """Internal compressed OP_MSG message helper."""
385 data, total_size, max_bson_size = _op_msg_no_header(flags, command, identifier, docs, opts)
386 request_id, op_message = __pack_message(2013, data)
387 return request_id, op_message, total_size, max_bson_size
388
389
390if _use_c:

Callers 1

_op_msgFunction · 0.85

Calls 2

_op_msg_no_headerFunction · 0.85
__pack_messageFunction · 0.85

Tested by

no test coverage detected