- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getRIndex (0.08 sec)
-
callbacks.go
if c.before != "" { // if defined before callback if c.before == "*" && len(sorted) > 0 { if curIdx := getRIndex(sorted, c.name); curIdx == -1 { sorted = append([]string{c.name}, sorted...) } } else if sortedIdx := getRIndex(sorted, c.before); sortedIdx != -1 { if curIdx := getRIndex(sorted, c.name); curIdx == -1 { // if before callback already sorted, append current callback just after itRegistered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Aug 26 06:24:29 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
assertThat(indexed1.getIndex(), is(0)); assertThat(indexed1.getElement(), is("aaa")); final Indexed<String> indexed2 = it.next(); assertThat(indexed2.getIndex(), is(1)); assertThat(indexed2.getElement(), is("bbb")); final Indexed<String> indexed3 = it.next(); assertThat(indexed3.getIndex(), is(2)); assertThat(indexed3.getElement(), is("ccc"));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcMessage.java
} @Override public void encode(final NdrBuffer buf) throws NdrException { final int start = buf.getIndex(); int alloc_hint_index = 0; buf.advance(16); /* momentarily skip header */ if (this.ptype == 0) { /* Request */ alloc_hint_index = buf.getIndex(); buf.enc_ndr_long(0); /* momentarily skip alloc hint */ buf.enc_ndr_short(0); /* context id */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
} @Override public void encode(final NdrBuffer buf) throws NdrException { final int start = buf.getIndex(); int alloc_hint_index = 0; buf.advance(16); /* momentarily skip header */ if (ptype == 0) { /* Request */ alloc_hint_index = buf.getIndex(); buf.enc_ndr_long(0); /* momentarily skip alloc hint */ buf.enc_ndr_short(0); /* context id */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
NdrShort ns = new NdrShort(original); buf.reset(); ns.encode(buf); // should not throw // After encoding, check how many bytes were used int bytesUsed = buf.getIndex(); // Should be 2 bytes for the short value (alignment may add padding) assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short"); // Reset index to read back buf.reset();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/IndexedIterator.java
* System.out.println(indexed.getIndex()); * System.out.println(indexed.getElement()); * } * </pre> * * <pre> * import static org.codelibs.core.collection.IndexedIterator.*; * import static org.codelibs.core.io.LineIterator.*; * * BufferedReader reader = ...; * for (Indexed<String> indexed : indexed(iterable(reader))) { * System.out.println(indexed.getIndex());
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponseTest.java
PopularWordsResponse response = new PopularWordsResponse("test-index", 100, words, 10, items); assertNotNull(response); assertEquals("test-index", response.getIndex()); assertEquals(100, response.getTookMs()); assertEquals(2, response.getNum()); assertEquals(10, response.getTotal()); assertEquals(2, response.getWords().size());Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Nov 13 00:40:54 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Indexed.java
* * @return the element */ public T getElement() { return element; } /** * Returns the index. * * @return the index */ public int getIndex() { return index; }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestResponseTest.java
SuggestResponse response = new SuggestResponse("test-index", 100, words, 10, items); assertNotNull(response); assertEquals("test-index", response.getIndex()); assertEquals(100, response.getTookMs()); assertEquals(2, response.getNum()); assertEquals(10, response.getTotal()); assertEquals(2, response.getWords().size());Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponse.java
this.total = total; this.items = items; } /** * Returns the index associated with the response. * * @return the index */ public String getIndex() { return index; } /** * Returns the time taken to generate the response in milliseconds. * * @return the time taken in milliseconds */ public long getTookMs() {Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sat Mar 15 06:51:20 UTC 2025 - 3.1K bytes - Viewed (0)