[Overview][Types][Classes][Index] |
Adds the specified content to the FIFO queue.
Source position: dynqueue.pas line 65
public function TDynamicDataQueue.Push( |
const Buffer; |
Count: Integer |
):Integer; |
AStream: TStream; |
Count: Integer |
):Integer; |
Buffer |
|
Untyped buffer with the arbitrary item data added in the method. |
Count |
|
Number of bytes needed for the item data added in the method. |
Number of bytes added to the internal queue storage in the method.
AStream |
|
TStream instance where the byte values for the item data is stored. |
Count |
|
Number of bytes needed for the item data added in the method. |
Push is an overloaded Integer function used to add the specified item data to the bottom of the FIFO queue. Overloaded variants are provided to supply item data as a sequence of arbitrary byte values, either from an untyped buffer or from a TStream instance.
Remark: | Push assumes that AStream is already positioned at the start of the data for the new item. It does not reposition the stream instance. |
Push calls the PushInternal method to perform the actions needed to enqueue the specified item data.
The return value contains the number of bytes added for the new item data to the internal storage for the ring queue.
Use Pop to dequeue an item from the top of the queue. Use Top to get the item data for the next item without removing it from the queue. Use Size to get the number of bytes allocated for items in the internal storage in the FIFO queue.
|
Removes an item from the top of the FIFO queue. |
|
|
Gets the data for the first queue entry, but does not remove it from the queue. |
|
|
Total memory required for item data stored in the queue. |
Version 4.0 | Generated 2025-05-03 | Home |