This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyCollector : FlowCollector<Int> { | |
override suspend fun emit(value: Int) { | |
print(value) | |
} | |
} | |
class MyFlow : Flow<Int> { | |
@InternalCoroutinesApi | |
override suspend fun collect(collector: FlowCollector<Int>) { | |
for (i in 1..10) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.Charset; | |
import org.apache.commons.codec.DecoderException; | |
import org.apache.commons.codec.binary.Hex; | |
public class RC4 { | |
private int[] S = new int[256]; | |
private final int keylen; |