Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1028345 // indexOf_byteArray

JavaX fragment (include)

static int indexOf_byteArray(byte[] a, byte b) {
  int n = l(a);
  for i to n:
    if (a[i] == b)
      ret i;
  ret -1;
}

Author comment

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: 223 / 242
Referenced in: [show references]