* 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. */
| 646 | * bytea view for it. |
| 647 | */ |
| 648 | bytea * |
| 649 | CastPgbsonToBytea(pgbson *bsonDocument) |
| 650 | { |
| 651 | /* right now both pgbson and bytea are varlena */ |
| 652 | return (bytea *) bsonDocument; |
| 653 | } |
| 654 | |
| 655 | |
| 656 | /* |
no outgoing calls
no test coverage detected