QuickHashIntHash::__construct

(PECL quickhash >= Unknown)

QuickHashIntHash::__constructCreates a new QuickHashIntHash object

Beschreibung

public QuickHashIntHash::__construct(int $size, int $options = ?)

This constructor creates a new QuickHashIntHash. The size is the amount of bucket lists to create. The more lists there are, the less collisions you will have. Options are also supported.

Parameter-Liste

size

The amount of bucket lists to configure. The number you pass in will be automatically rounded up to the next power of two. It is also automatically limited from 64 to 4194304.

options

The options that you can pass in are: QuickHashIntHash::CHECK_FOR_DUPES, which makes sure no duplicate entries are added to the hash; QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC to not use PHP's internal memory manager as well as one of QuickHashIntHash::HASHER_NO_HASH, QuickHashIntHash::HASHER_JENKINS1 or QuickHashIntHash::HASHER_JENKINS2. These last three configure which hashing algorithm to use. All options can be combined using bitmasks.

Rückgabewerte

Returns a new QuickHashIntHash object.

Beispiele

Beispiel #1 QuickHashIntHash::__construct() example

<?php
var_dump
( new QuickHashIntHash1024 ) );
var_dump( new QuickHashIntHash1024QuickHashIntHash::CHECK_FOR_DUPES ) );
var_dump(
    new 
QuickHashIntHash(
        
1024,
        
QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC QuickHashIntHash::HASHER_JENKINS2 
    
)
);
?>

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Probleme bei mehreren Bildern in Canvas

Hallo zusammen, du überschreibst in deinem Code immer wieder dieselbe Image‑Instanz (img.src = ... in der Schleife), weshalb am Ende nur das le ...

Geschrieben von Aditiyawillam am 23.05.2026 16:03:27
Forum: HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS
How to Approach Legal Sports Toto Use Through Betman and Offline Retailers

Legal Sports Toto systems exist within a regulated environment where participation is structured by licensing rules, age verification, and defined ...

Geschrieben von safetysitetoto am 23.05.2026 14:22:34
Forum: Ankündigungen
How to Use Community Reviews to Spot Practical Warning Signs of Unsafe Toto Sites

Online communities have changed how users evaluate Toto platforms. Instead of relying only on advertisements or ranking pages, many people now com ...

Geschrieben von totoscamdamage am 23.05.2026 13:59:15
Forum: Ankündigungen
A Reviewer’s Guide to Learning From User Reports and Real Damage Case Patterns

Most betting platforms present themselves positively. That is expected. Promotional language, polished interfaces, and fast registration systems a ...

Geschrieben von verficationtoto am 23.05.2026 13:58:56
Forum: Ankündigungen