- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,918 for ints (0.04 sec)
-
guava/src/com/google/common/net/InetAddresses.java
} /** Returns a -1 if unable to parse */ private static int tryParseDecimal(String string, int start, int end) { int decimal = 0; int max = Integer.MAX_VALUE / 10; // for int overflow detection for (int i = start; i < end; i++) { if (decimal > max) { return -1; } decimal *= 10; int digit = Character.digit(string.charAt(i), 10); if (digit < 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
private static byte[] buildIoctlResponseBody(int ctlCode, byte[] fileId, int inputCount, byte[] inputBytes, int outputCount, byte[] outputBytes, int ioctlFlags) { final int headerLen = 64; // SMB2 header is 64 bytes final int bodyFixed = 48; // body size minus 1 for structure size field overlap final int payloadStart = headerLen + bodyFixed; final int bodyLen = bodyFixed + inputCount + outputCount;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
int last = 0; for (int shards = 2; shards <= MAX_SHARDS; shards++) { int chosen = Hashing.consistentHash(h, shards); if (chosen != last) { map.incrementAndGet(shards); last = chosen; } } } private static final int ITERS = 10000; private static final int MAX_SHARDS = 500;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (2) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
int[] expectedSizes = { 16, 24, 32, 40, 48 }; for (int i = 0; i < contexts.length; i++) { contexts[i] = new MockCreateContextRequest("CTX" + i, expectedSizes[i]); } // Calculate total size int totalSize = 0; for (int i = 0; i < contexts.length; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
// writeInt2 writes in little-endian format (LSB first) int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8); int expected = level & 0xFFFF; assertEquals(expected, written); } // Helper method to extract string from buffer private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) { int end = offset; while (end < offset + maxLen && buffer[end] != 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
} else { toIndex = ranges.size(); } int length = toIndex - fromIndex; if (length == 0) { return ImmutableList.of(); } else { return new ImmutableList<Range<C>>() { @Override public int size() { return length; } @Override public Range<C> get(int index) { checkElementIndex(index, length);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 27.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
* #lock(int) strong} and {@linkplain #lazyWeakLock(int) weak} {@code Striped<Lock>}, {@linkplain * #semaphore(int, int) strong} and {@linkplain #lazyWeakSemaphore(int, int) weak} {@code * Striped<Semaphore>}, and {@linkplain #readWriteLock(int) strong} and {@linkplain * #lazyWeakReadWriteLock(int) weak} {@code Striped<ReadWriteLock>}. <i>Strong</i> means that all
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
assertEquals(64, result.length()); // 32 bytes * 2 chars per byte } @ParameterizedTest @ValueSource(ints = { 1, 16, 32, 64, 128, 256 }) @DisplayName("Should handle various data sizes") void testVariousDataSizes(int size) { // Given byte[] data = createTestData(size); // When String result = Hexdump.toHexString(data); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashMap.java
void resizeEntries(int newCapacity) { this.entries = Arrays.copyOf(requireEntries(), newCapacity); this.keys = Arrays.copyOf(requireKeys(), newCapacity); this.values = Arrays.copyOf(requireValues(), newCapacity); } @CanIgnoreReturnValue private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) { Object newTable = CompactHashing.createTable(newCapacity);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 39.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
import com.google.common.base.TestExceptions.SomeUncheckedException; import com.google.common.base.TestExceptions.YetAnotherCheckedException; import com.google.common.collect.Iterables; import com.google.common.primitives.Ints; import com.google.common.testing.NullPointerTester; import java.util.List; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Unit test for {@link Throwables}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0)