- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,106 for fill (0.02 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
void testDecodeValidResumeKey() throws SMBProtocolDecodingException { // Prepare test data - 24 bytes for resume key + 4 bytes for context length byte[] buffer = new byte[28]; // Fill resume key with test pattern for (int i = 0; i < 24; i++) { buffer[i] = (byte) (i + 1); } // Add context length (reserved) - 4 bytes buffer[24] = 0x00;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
// We should never get negative values here but if we do it will throw an // IndexOutOfBoundsException, so at least it will get spotted. if (cp < safeOctets.length && safeOctets[cp]) { return null; } else if (cp == ' ' && plusForSpace) { return plusSign; } else if (cp <= 0x7F) { // Single byte UTF-8 characters // Start with "%--" and fill in the blanks char[] dest = new char[3];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/EncodableTest.java
Encodable enc = new ByteEncodable(src, off, len); // Destination has guard space to verify non-overwritten regions. byte[] dst = new byte[dstIndex + len + 5]; Arrays.fill(dst, (byte) 0x55); // Act int written = enc.encode(dst, dstIndex); // Assert: reported written bytes matches size() and requested len.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java
} @Override void init(int expectedSize, float loadFactor) { super.init(expectedSize, loadFactor); firstEntry = ENDPOINT; lastEntry = ENDPOINT; links = new long[expectedSize]; Arrays.fill(links, UNSET); } @Override int firstIndex() { return (firstEntry == ENDPOINT) ? -1 : firstEntry; } @Override int nextIndex(int index) { int result = getSuccessor(index);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractStreamingHasher.java
* size. * * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation; * must be at least 4 */ protected AbstractStreamingHasher(int chunkSize) { this(chunkSize, chunkSize); } /** * Constructor for use by subclasses. This hasher instance will process chunks of the specified
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
void testReadDataWireFormatVariousSizes(int dataSize) throws SMBProtocolDecodingException { // Test with various data sizes within buffer limit byte[] testData = new byte[dataSize]; Arrays.fill(testData, (byte) 0xAB); byte[] buffer = new byte[dataSize + 100]; System.arraycopy(testData, 0, buffer, 20, dataSize); int result = response.readDataWireFormat(buffer, 20, dataSize);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
} public void testFull() { // Test 32 byte array of 0xFF. byte[] fulls = new byte[32]; Arrays.fill(fulls, (byte) 0xFF); assertCrc(0x62a8ab43, fulls); } public void testFull100() { // Test 100 byte array of 0xFF. byte[] fulls = new byte[100]; Arrays.fill(fulls, (byte) 0xFF); assertCrc(0xbc753add, fulls); } public void testAscending() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.6K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/FEATURE.yml
# # 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 # # http://www.apache.org/licenses/LICENSE-2.0
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:30:05 UTC 2025 - 1.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java
} private static String newTestString(Random random, BitSet bitSet, int percentMatching) { String allMatchingChars = allMatchingChars(bitSet); char[] result = new char[STRING_LENGTH]; // Fill with matching chars. for (int i = 0; i < result.length; i++) { result[i] = allMatchingChars.charAt(random.nextInt(allMatchingChars.length())); } // Replace some of chars by non-matching.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
*/ private static byte[] newBuffer(int length) { // initialise with distinct pattern to detect unused trailing bytes byte[] buf = new byte[length]; Arrays.fill(buf, (byte) 0xFF); return buf; } @Test @DisplayName("constructor initialises command and parameters correctly") void testConstructorInitialisesFields() throws Exception { int level = 42;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0)