encode_BinaryHeap

encode_BinaryHeap

Overview

encode_BinaryHeap is a class in Aspose.Font FOSS for Python.

This class provides 8 methods for working with encode_BinaryHeap objects in Python programs. Available methods include: HistogramPairComparator, __init__, bubbleDown, bubbleUp, pop, push, size, swap. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: arr, comp.

Properties

NameTypeAccessDescription
comp``ReadGets the comp.
arr``ReadGets the arr.

Methods

SignatureDescription
__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

See Also