Écode_Binaire
Vue de l’ensemble
’encode_BinaryHeap’ est une classe dans Aspose.Font FOSS pour Python.
Cette classe fournit 8 méthodes pour travailler avec les objets de codage_BinaryHeap dans les programmes Python. Les méthodologies disponibles comprennent: HistogramPairComparator, __init__ , bubbleDown,, ‘bublUp 'pop’, ‘push size et 'swap. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation du Aspose.Font FOSS pour le package PyThone. Propriétés : arr ; ‘comp` .
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
comp | `` | Read | Gets the comp. |
arr | `` | Read | Gets the arr. |
méthodes
| Signature | Description |
|---|---|
__init__() | Calls init on this encode_BinaryHeap instance. |
HistogramPairComparator(p1, p2) | Compares two histogram pairs for ordering |
swap(a, b) | Exchanges the elements at indices a and b in the heap array |
bubbleDown(pos) | Moves the element at position pos down to restore heap order |
bubbleUp(pos) | Calls bubbleUp on this encode_BinaryHeap instance. |
pop() | Removes and returns the top element of the heap |
push(value) | Inserts a value into the binary heap used by the Brotli encoder’s priority queue |
size() | Returns the number of elements currently stored in the heap |
Voir aussi
- Aspose.Font — référence API d’entreprise