decodeBinaryDataType
Decodes the type of a binary blob.
The BsonType.BinaryData type stores an additional byte to know what kind of data is stored. To decode the data itself, see decodeBinaryData.
The binary data types 0..127 are reserved. The data types 128..255 are available for custom use.
The binary data type 0 is a generic subtype that can be used for any usage.
Note that the KtMongo library provides utilities for some specific binary types:
To decode UUIDs, use decode with the kotlin.uuid.Uuid type.
To decode vectors, see decodeVector.
External resources
Throws
If the value is not a BsonType.BinaryData.