()
| 98 | } |
| 99 | |
| 100 | public int @NotNull [] toArray() { |
| 101 | int n = count; |
| 102 | if (n <= 0) |
| 103 | return EMPTY; |
| 104 | int[] buf = new int[n]; |
| 105 | System.arraycopy(buffer, 0, buf, 0, n); |
| 106 | return buf; |
| 107 | } |
| 108 | |
| 109 | public int @NotNull [] toArray(int fromIdx, int count) { |
| 110 | if (fromIdx < 0) |
no outgoing calls