in src/Apache/Ignite/Internal/Binary/BinaryTypeStorage.php [84:104]
private function getBinaryType(int $typeId): ?BinaryType
{
$binaryType = new BinaryType(null);
$binaryType->setId($typeId);
$this->communicator->send(
ClientOperation::GET_BINARY_TYPE,
function (MessageBuffer $payload) use ($typeId)
{
$payload->writeInteger($typeId);
},
function (MessageBuffer $payload) use (&$binaryType)
{
$exist = $payload->readBoolean();
if ($exist) {
$binaryType->read($payload);
} else {
$binaryType = null;
}
});
return $binaryType;
}