1 | static bool byteArrayStartsWith(byte[] a, byte[] b) { |
2 | if (a == null || b == null) false; |
3 | if (a.length < b.length) false; |
4 | for (int i = 0; i < b.length; i++) |
5 | if (a[i] != b[i]) |
6 | false; |
7 | true; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009030 |
Snippet name: | byteArrayStartsWith |
Eternal ID of this version: | #1009030/2 |
Text MD5: | a0b42cccb87deb7613d7e7d02c79ef4b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-28 19:50:54 |
Source code size: | 213 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 621 |
Version history: | 1 change(s) |
Referenced in: | [show references] |