istream_is_completed()#
Checks if the given istream_h has completed its current reading operation. Completion is determined based on whether the defined criteria (e.g., reading up to a delimiter or a specific number of bytes) have been met.
Prototype
PUBLIC BOOL istream_is_completed(
istream_h istream
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The handle to the istream to check for completion status. |
Return Value
Returns
TRUEif the istream’s operation (reading until a delimiter or a specific number of bytes) is complete.Returns
FALSEif the operation is not yet complete or if theistreamis invalid.
Notes
The function checks the
completedflag in the internal structure of the istream.Logs an error if the provided
istreamisNULL.
Example Usage This function is typically used to verify whether an operation, such as reading a specific number of bytes or until a delimiter, has successfully completed before further processing.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples