protected void backpatchMessageLength ( final int startPosition , final BsonOutput bsonOutput ) { int messageLength = bsonOutput . getPosition ( ) - startPosition ; bsonOutput . writeInt32 ( bsonOutput . getPosition ( ) - messageLength , messageLength ) ; }
Backpatches the message length into the beginning of the message .