skipIfFound

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

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

Return

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

Parameters

byteString

The ByteString to look for and skip if found.