1 | static int indexOf_byteArray(byte[] a, byte b) {
|
2 | int n = l(a); |
3 | for i to n: |
4 | if (a[i] == b) |
5 | ret i; |
6 | ret -1; |
7 | } |
Began life as a copy of #1028343
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028345 |
| Snippet name: | indexOf_byteArray |
| Eternal ID of this version: | #1028345/1 |
| Text MD5: | b99fee3102e2f7fa9533bfe4333560f0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-06-12 21:52:51 |
| Source code size: | 128 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 420 / 446 |
| Referenced in: | [show references] |