- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 2,512 for size8 (0.02 seconds)
-
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
@DisplayName("Test getSendBufferSize returns standard size") void testGetSendBufferSizeStandard() { // Arrange int expectedSize = 65536; when(negotiationResponse.getSendBufferSize()).thenReturn(expectedSize); // Act int size = negotiationResponse.getSendBufferSize(); // Assert assertEquals(expectedSize, size); verify(negotiationResponse).getSendBufferSize();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java
// Split out all the specified sizes. Set<Feature<?>> sizesToTest = Helpers.copyToSet(CollectionSize.values()); sizesToTest.retainAll(features); features.removeAll(sizesToTest); addImpliedFeatures(sizesToTest); sizesToTest.retainAll(asList(CollectionSize.ZERO, CollectionSize.ONE, CollectionSize.SEVERAL)); logger.fine(" Sizes: " + formatFeatureSet(sizesToTest));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
// Then assertEquals(0, result); } /** * Test writeParameterWordsWireFormat with various buffer sizes */ @Test @DisplayName("Test writeParameterWordsWireFormat with different buffer sizes") public void testWriteParameterWordsWireFormatWithDifferentBufferSizes() { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
ImmutableSet.Builder<String> builder = ImmutableSet.builderWithExpectedSize(4); builder.add("a"); assertEquals(1, builder.size); builder.add("a"); assertEquals(1, builder.size); builder.add("b", "c", "d"); assertEquals(4, builder.size); Object[] table = builder.hashTable; assertNotNull(table); assertSame(table, ((RegularImmutableSet<String>) builder.build()).table); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 14.1K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
@CanIgnoreReturnValue public Builder addAll(LongStream stream) { Spliterator.OfLong spliterator = stream.spliterator(); long size = spliterator.getExactSizeIfKnown(); if (size > 0) { // known *and* nonempty ensureRoomFor(Ints.saturatedCast(size)); } spliterator.forEachRemaining((LongConsumer) this::add); return this; } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 22K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
@Test @DisplayName("Should read valid structure with size 4") void testReadBytesWireFormatValidStructure() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[10]; int bufferIndex = 0; SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4 SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved fieldCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// Then - should include context sizes assertTrue(size > 112); // Bigger than without contexts assertEquals(0, size % 8); // Should be 8-byte aligned } @Test @DisplayName("Should write bytes to wire format correctly") void testWriteBytesWireFormat() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB302);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
@DisplayName("Should handle various data sizes in hexdump") void testHexdumpVariousSizes(int size) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); byte[] data = createTestData(size); Hexdump.hexdump(ps, data, 0, size); String output = baos.toString(); assertNotNull(output);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableMap.java
// Max size is halved due to indexing into double-sized alternatingKeysAndValues private static final int BYTE_MAX_SIZE = 1 << (Byte.SIZE - 1); // 2^7 = 128 private static final int SHORT_MAX_SIZE = 1 << (Short.SIZE - 1); // 2^15 = 32_768 private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255 private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.5K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteStreams.java
// When called at high frequency, boxing size generates too much garbage, // so avoid doing that if we can. checkArgument(size >= 0, "Invalid size: %s", size); return newDataOutput(new ByteArrayOutputStream(size)); } /** * Returns a new {@link ByteArrayDataOutput} instance which writes to the given {@codeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0)