[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
This file is part of the ramsey/uuid library For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Copyright: | Copyright (c) Ben Ramsey <[email protected]> |
License: | http://opensource.org/licenses/MIT MIT |
File Size: | 108 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
TimestampFirstCombCodec:: (5 methods):
encode()
encodeBinary()
decode()
decodeBytes()
swapTimestampAndRandomBits()
Class: TimestampFirstCombCodec - X-Ref
TimestampFirstCombCodec encodes and decodes COMB UUIDs which have the timestamp as the first 48 bits.encode(UuidInterface $uuid) X-Ref |
Encodes a UuidInterface as a string representation of a timestamp first COMB UUID param: UuidInterface $uuid return: string Hexadecimal string representation of a GUID |
encodeBinary(UuidInterface $uuid) X-Ref |
Encodes a UuidInterface as a binary representation of timestamp first COMB UUID param: UuidInterface $uuid return: string Binary string representation of timestamp first COMB UUID |
decode($encodedUuid) X-Ref |
Decodes a string representation of timestamp first COMB UUID into a UuidInterface object instance param: string $encodedUuid return: UuidInterface |
decodeBytes($bytes) X-Ref |
Decodes a binary representation of timestamp first COMB UUID into a UuidInterface object instance param: string $bytes return: UuidInterface |
swapTimestampAndRandomBits(array &$components) X-Ref |
Swaps the first 48 bits with the last 48 bits param: array $components An array of UUID components (the UUID exploded on its dashes) return: void |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |