MCPcopy Create free account
hub / github.com/documentdb/documentdb / CastPgbsonToBytea

Function CastPgbsonToBytea

pg_documentdb_core/src/io/pgbson.c:648–653  ·  view source on GitHub ↗

* Converts a pgbson structure to a bytea buffer * * That means, it doesn't copy raw bytes of given document but returns a * bytea view for it. */

Source from the content-addressed store, hash-verified

646 * bytea view for it.
647 */
648bytea *
649CastPgbsonToBytea(pgbson *bsonDocument)
650{
651 /* right now both pgbson and bytea are varlena */
652 return (bytea *) bsonDocument;
653}
654
655
656/*

Callers 10

bson_to_byteaFunction · 0.85
InsertDocumentFunction · 0.85
InsertOrReplaceDocumentFunction · 0.85
DeleteOneInternalFunction · 0.85
SelectUpdateCandidateFunction · 0.85
UpdateDocumentByTIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected