SERVER-121635 Discourage use of ByteArrayDeprecated (#50638)

GitOrigin-RevId: 2c8e3307a71a49a3695e21cc5d91e515447089da
This commit is contained in:
Alex Li 2026-03-27 15:42:35 -04:00 committed by MongoDB Bot
parent 8098b2fbf1
commit 62d4aa1239

View File

@ -663,7 +663,10 @@ public:
return value() + 5;
}
/**
* Get binary data. Element must be of type BinData. Handles type 2
* Get binary data. Element must be of type BinData.
*
* Handles ByteArrayDeprecated (subtype 2) for legacy support. New callers should never
* use this subtype.
*/
const char* binDataClean(int& len) const {
// BinData: <int len> <byte subtype> <byte[len] data>