skipIfFound

suspend fun ByteReadChannel.skipIfFound(byteString: ByteString): Boolean

Skips the specified byteString in the ByteReadChannel if it is found at the current position.

Report a problem

Return

Returns true if the byteString was found and skipped, otherwise returns false.

Parameters

byteString

The ByteString to look for and skip if found.