- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 8,779 for fill (0.2 sec)
-
guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java
@Override public Integer load(Integer from) { return (int) misses.incrementAndGet(); } }); // To start, fill up the cache. // Each miss both increments the counter and causes the map to grow by one, // so until evictions begin, the size of the map is the greatest return // value seen so farRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
assertFalse(key.isZero()); } @Test @DisplayName("Should create zero lease key") void testZeroLeaseKey() { byte[] zeroBytes = new byte[16]; Arrays.fill(zeroBytes, (byte) 0); Smb2LeaseKey key = new Smb2LeaseKey(zeroBytes); assertTrue(key.isZero()); assertArrayEquals(zeroBytes, key.getKey()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
@BeforeExperiment @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 void setUp() { String component = Strings.repeat("a", componentLength); String[] raw = new String[count]; Arrays.fill(raw, component); components = Arrays.asList(raw); } /** {@link Joiner} with a string delimiter. */ @Benchmark int joinerWithStringDelimiter(int reps) { int dummy = 0;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
} File file = out.getFile(); assertThat(file).isNull(); // Write data to go over the threshold if (chunk2 > 0) { write(out, data, chunk1, chunk2, singleByte); file = out.getFile(); assertEquals(dataSize, file.length()); assertTrue(file.exists()); assertThat(file.getName()).contains("FileBackedOutputStream");Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 16:30:29 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
} @Test void testGetBuffer() { assertSame(buffer, ndrBuffer.getBuffer()); } @Test void testAlignWithValue() { // Align to 4-byte boundary with a fill value ndrBuffer.setIndex(1); int alignedBytes = ndrBuffer.align(4, (byte) 0xFF); assertEquals(3, alignedBytes); // Should advance by 3 bytes (1 -> 4) assertEquals(4, ndrBuffer.getIndex());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
*/ public byte[] getBuffer() { return this.buf; } /** * Aligns the buffer index to the specified boundary with a fill value. * * @param boundary the alignment boundary * @param value the fill value for padding * @return the number of bytes added for alignment */ public int align(final int boundary, final byte value) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
SMBUtil.writeInt4(432, buffer, bufferIndex + 4); // 512 - 80 response = spy(response); when(response.getHeaderStart()).thenReturn(0); // Fill the entire data area with zero (no valid entries) for (int i = dataOffset; i < 512; i++) { buffer[i] = 0; } int result = response.readBytesWireFormat(buffer, bufferIndex);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
public void test_fillInStackTrace() { CrawlerSystemException exception = new CrawlerSystemException("Fill stack trace test"); StackTraceElement[] originalStackTrace = exception.getStackTrace(); assertNotNull(originalStackTrace); assertTrue(originalStackTrace.length > 0); // Fill in stack trace again Throwable filled = exception.fillInStackTrace(); assertSame(exception, filled);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at *
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
// Test with null serverData.encryptionKey = null; assertNull(serverData.encryptionKey); // Test guid (typically 16 bytes) byte[] guid = new byte[16]; Arrays.fill(guid, (byte) 0xAB); serverData.guid = guid; assertNotNull(serverData.guid); assertArrayEquals(guid, serverData.guid); assertEquals(16, serverData.guid.length); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0)