- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 431 for ints (0.02 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
@ParameterizedTest @ValueSource(ints = { -10, -1, 0, 1, 42 }) @DisplayName("Returns 0 regardless of dst and index") void returnsZero_forVariousIndexes(int index) { // Arrange Smb2LogoffResponse resp = newResponse(); byte[] buffer = new byte[8]; byte[] original = buffer.clone(); // Act int written = resp.writeBytesWireFormat(buffer, index);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
@DisplayName("Test decode with aligned next entry offsets") @ValueSource(ints = { 0, 4, 8, 16, 32, 64, 128, 256, 1024 }) void testDecodeWithAlignedOffsets(int nextOffset) throws SMBProtocolDecodingException { byte[] buffer = createNotificationBufferWithNextOffset("aligned.txt", FileNotifyInformation.FILE_ACTION_ADDED, nextOffset); int bytesRead = notifyInfo.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java
public abstract class TestIntegerSetGenerator implements TestSetGenerator<Integer> { @Override public SampleElements<Integer> samples() { return new Ints(); } @Override public Set<Integer> create(Object... elements) { Integer[] array = new Integer[elements.length]; int i = 0; for (Object e : elements) { array[i++] = (Integer) e; } return create(array); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java
return (result == null) ? elementSet = new ElementSet<>(entries, this) : result; } @Override Entry<E> getEntry(int index) { return entries.get(index); } @Override boolean isPartialView() { return false; } @Override public int size() { return Ints.saturatedCast(size); } // redeclare to help optimizers with b/310253115 @SuppressWarnings("RedundantOverride")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 08 13:05:15 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
int bytesRead = response.readBytesWireFormat(buffer, 0); assertEquals(16, bytesRead); assertEquals(-1, response.getCount()); // -1 as signed int represents max unsigned value assertEquals(-2, response.getRemaining()); } private byte[] createValidWriteResponse(int count, int remaining) { byte[] buffer = new byte[64];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataInputStream.java
} @Override public void readFully(byte[] b, int off, int len) throws IOException { ByteStreams.readFully(this, b, off, len); } @Override public int skipBytes(int n) throws IOException { return (int) in.skip(n); } @CanIgnoreReturnValue // to skip a byte @Override public int readUnsignedByte() throws IOException { int b1 = in.read(); if (b1 < 0) { throw new EOFException();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 7.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
@Override Striped<Lock> get(int stripes) { return new Striped.LargeLazyStriped<>(stripes, LOCK_SUPPLIER); } }; abstract Striped<Lock> get(int stripes); } private Striped<Lock> striped; private int[] stripes; private List<Integer> bulkGetSet; @BeforeExperiment void setUp() { this.striped = impl.get(numStripes); stripes = new int[numStripes];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractByteHasher.java
protected void update(byte[] b) { update(b, 0, b.length); } /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */ protected void update(byte[] b, int off, int len) { for (int i = off; i < off + len; i++) { update(b[i]); } } /** Updates this hasher with bytes from the given buffer. */ protected void update(ByteBuffer b) { if (b.hasArray()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 12:40:17 UTC 2025 - 3.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SampleElements.java
public Enums() { // elements aren't sorted, to better test SortedSet iteration ordering super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E); } } public static class Ints extends SampleElements<Integer> { public Ints() { // elements aren't sorted, to better test SortedSet iteration ordering super(1, 0, 2, 3, 4); } } public static <K extends @Nullable Object, V extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesTest.java
// ceil(199*index/2). if (index % 2 == 0) { int position = IntMath.divide(199 * index, 2, UNNECESSARY); return PSEUDORANDOM_DATASET_SORTED.get(position); } else { int positionFloor = IntMath.divide(199 * index, 2, FLOOR); int positionCeil = IntMath.divide(199 * index, 2, CEILING); double lowerValue = PSEUDORANDOM_DATASET_SORTED.get(positionFloor);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 29.8K bytes - Viewed (0)