buf.findch
Find a byte in a binary data.
method uint buf.findch (
uint offset,
uint ch
)
uint offset,
uint ch
)
Parameters
offset | The offset to start searching from. |
ch | A unsigned byte to be searched. |
Return value
The offset of the byte if it is found. If the byte is not found, the size of the buffer is returned.
Related links | Source |