コード例 #1
0
ファイル: GuidStringCodec.php プロジェクト: jacko972/uuid
 public function decodeBytes($bytes)
 {
     return parent::decode(bin2hex($bytes));
 }
コード例 #2
0
ファイル: GuidStringCodec.php プロジェクト: 00f100/uuid
 /**
  * Decodes a binary representation of a GUID into a UuidInterface object instance
  *
  * @param string $bytes
  * @return UuidInterface
  */
 public function decodeBytes($bytes)
 {
     // Specifically call parent::decode to preserve correct byte order
     return parent::decode(bin2hex($bytes));
 }