Uses 521K of libraries. Compilation Failed (7508L/44K).
1 | sclass OpusMachineIterator extends CloseableShortIterator { |
2 | OpusMachine machine; |
3 | *(OpusMachine *machine) { ownResource(machine); } |
4 | |
5 | !include #1033023 // Resources mix-in |
6 | |
7 | int val = Int.MAX_VALUE; |
8 | |
9 | bool hasNext() { |
10 | if (val == Int.MAX_VALUE) |
11 | val = machine!; |
12 | ret val != Int.MIN_VALUE; |
13 | } |
14 | |
15 | short next() { |
16 | if (!hasNext()) fail("No such element"); |
17 | var v = val; |
18 | val = Int.MAX_VALUE; |
19 | ret (short) v; |
20 | } |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033030 |
Snippet name: | OpusMachineIterator |
Eternal ID of this version: | #1033030/7 |
Text MD5: | f869b4195098ac3a302c65663bf2ac30 |
Transpilation MD5: | dfa359f5937c9974339fa179a1914d43 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 13:50:34 |
Source code size: | 471 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 222 / 359 |
Version history: | 6 change(s) |
Referenced in: | [show references] |