Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TimestampFirstCombCodec.php

function TimestampFirstCombCodec::decode

@inheritDoc

Throws

InvalidUuidStringException

Overrides StringCodec::decode

File

vendor/ramsey/uuid/src/Codec/TimestampFirstCombCodec.php, line 88

Class

TimestampFirstCombCodec
TimestampFirstCombCodec encodes and decodes COMBs, with the timestamp as the first 48 bits

Namespace

Ramsey\Uuid\Codec

Code

public function decode(string $encodedUuid) : UuidInterface {
    $bytes = $this->getBytes($encodedUuid);
    return $this->getBuilder()
        ->build($this, $this->swapBytes($bytes));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal