Libraryless. Click here for Pure Java version (3875L/22K).
static Iterator<Byte> toByteIterator(O o) { if (o == null) null; if (o cast Iterator) ret o; if (o cast Iterable) ret iterator(o); if (o cast byte[]) ret iterator(wrapPrimitiveArrayAsImmutableList(o)); fail(); }
Began life as a copy of #1033091
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033092 |
Snippet name: | toByteIterator |
Eternal ID of this version: | #1033092/5 |
Text MD5: | 842448547b49a545f57d3a12d6355126 |
Transpilation MD5: | 2bb14d977f1af3311ce9564c4ae872b8 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-14 04:31:58 |
Source code size: | 227 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 231 |
Version history: | 4 change(s) |
Referenced in: | [show references] |