Allows to perform an inspection of the given chunk on the given stream.
The chunk will be checked to apper inside the stream. This means that, having the stream as its state, the chunk should be found the very begining of the stream.
- Parameters:
-
| stream | The axlStream where the operation will be performed. |
| chunk | The chunk that is expected to be found at the begin of the stream. |
| inspected_size | The size of the chunk provided to be inspected. |
- Returns:
- The function returns the following values according to the result:
- 0 if the chunk wasn't found inside the stream but no error was found.
- 1 if the chunk is found inside the given stream.
- -1 means that no more stream is left to satify the operation.
- -2 means that the parameters received are wrong either because stream is a NULL reference or because chunk is the same.