(mongodb >=1.0.0)
BSON type for binary data (i.e. array of bytes). Binary values also have a subtype, which is used to indicate what kind of data is in the byte array. Subtypes from zero to 127 are predefined or reserved. Subtypes from 128-255 are user-defined.
$vector, MongoDB\BSON\VectorType $vectorType): MongoDB\BSON\BinaryMongoDB\BSON\Binary::TYPE_GENERICMongoDB\BSON\Binary::TYPE_FUNCTIONMongoDB\BSON\Binary::TYPE_OLD_BINARYMongoDB\BSON\Binary::TYPE_GENERIC).
MongoDB\BSON\Binary::TYPE_OLD_UUIDMongoDB\BSON\Binary::TYPE_UUID). When using this
type, the Binary's data should be 16 bytes in length.
Historically, other drivers encoded values with this type based on their
language conventions (e.g. varying endianness), which makes it
non-portable. The PHP extension applies no special handling for encoding
or decoding data with this type.
MongoDB\BSON\Binary::TYPE_UUIDMongoDB\BSON\Binary::TYPE_MD5MongoDB\BSON\Binary::TYPE_ENCRYPTEDMongoDB\BSON\Binary::TYPE_COLUMNMongoDB\BSON\Binary::TYPE_SENSITIVEMongoDB\BSON\Binary::TYPE_VECTORMongoDB\BSON\Binary::TYPE_USER_DEFINED| Versione | Descrizione |
|---|---|
| PECL mongodb 2.2.0 |
Added MongoDB\BSON\Binary::TYPE_VECTOR, as well as the
MongoDB\BSON\Binary::fromVector(),
MongoDB\BSON\Binary::getVectorType(), and
MongoDB\BSON\Binary::toArray() functions.
|
| PECL mongodb 2.0.0 |
This class no longer implements the Serializable interface. |
| PECL mongodb 1.17.0 |
Added MongoDB\BSON\Binary::TYPE_SENSITIVE.
|
| PECL mongodb 1.12.0 |
Implements Stringable for PHP 8.0+.
Added MongoDB\BSON\Binary::TYPE_COLUMN.
|
| PECL mongodb 1.7.0 |
Added MongoDB\BSON\Binary::TYPE_ENCRYPTED.
|
| PECL mongodb 1.3.0 | Implements MongoDB\BSON\BinaryInterface. |
| PECL mongodb 1.2.0 | Implements Serializable and JsonSerializable. |