public function localIdIn(int $uuid, bool $validate = true): int
    {
        $local_id = ($uuid >> (64 - 2 - 16 - 8 - 38)) & 274877906943;

        if ($validate) {
            $this->validateLocalId($local_id);
        }
        return $local_id;
    }
public function localIdIn(int $uuid, bool $validate = true): int
    {
        $local_id = ($uuid >> (64 - 2 - 16 - 8 - 38)) & 274877906943;

        if ($validate) {
            $this->validateLocalId($local_id);
        }
        return $local_id;
    }
public function localIdIn ( int $ uuid , bool $ validate = true ) : int { $ local_id = ( $ uuid >> ( 64 - 2 - 16 - 8 - 38 ) ) & 274877906943 ; if ( $ validate ) { $ this -> validateLocalId ( $ local_id ) ; } return $ local_id ; }
Local ID from UUID64.

@since 150424 Initial release.

@param int  $uuid     Input UUID64 (64 bits signed max `9223372036854775807`).
@param bool $validate Validate the local ID after extraction? Defaults to `true`.

@return int Local ID from UUID64 (38 bits unsigned max `274877906943`).
Local ID from UUID64 .