Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson • BsonValueWriter • pipe
pipe¶
@LowLevelApi
@DangerousMongoApi
open fun pipe(obj: BsonValueReader)
Writes the arbitrary obj
into this writer.
Note that the object will be written as-is, with no safety checks whatsoever. Only use this method if you are absolutely sure attackers cannot control the contents of obj
.
If in doubt, prefer using writeObjectSafe
.