[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/Codec/ -> OrderedTimeCodec.php (summary)

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: 68 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OrderedTimeCodec:: (2 methods):
  encodeBinary()
  decodeBytes()


Class: OrderedTimeCodec  - X-Ref

OrderedTimeCodec optimizes the bytes to increment UUIDs when time goes by, to improve database INSERTs.
The string value will be unchanged from StringCodec. Only works for UUID type 1.

encodeBinary(UuidInterface $uuid)   X-Ref
Encodes a UuidInterface as an optimized binary representation of a UUID

param: UuidInterface $uuid
return: string Binary string representation of a UUID

decodeBytes($bytes)   X-Ref
Decodes an optimized binary representation of a UUID into a UuidInterface object instance

param: string $bytes
return: UuidInterface



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer