- Sort Score
- Num 10 results
- Language All
Results 431 - 440 of 2,286 for lengths (0.04 seconds)
-
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
assertThat(newArray.length, is(2)); assertThat(newArray[0], is("111")); assertThat(newArray[1], is("222")); final String[] emptyArray = new String[0]; assertThat(ArrayUtil.addAll((Object[]) null, (Object[]) null), is(nullValue())); assertThat(ArrayUtil.addAll(null, emptyArray).length, is(0));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Fri Jun 20 13:40:57 GMT 2025 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
} @Test @DisplayName("Test encode operation") void testEncode() { byte[] buffer = new byte[1024]; int length = response.encode(buffer, 0); assertTrue(length >= 0); } @Test @DisplayName("Test decode operation") void testDecode() { byte[] buffer = new byte[1024]; // Fill with basic SMB header structureCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java
Integer[] array = new Integer[elements.length]; int i = 0; for (Object e : elements) { array[i++] = (Integer) e; } return create(array); } protected abstract Set<Integer> create(Integer[] elements); @Override public Integer[] createArray(int length) { return new Integer[length]; } /** * {@inheritDoc} *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java
AnEnum[] array = new AnEnum[elements.length]; int i = 0; for (Object e : elements) { array[i++] = (AnEnum) e; } return create(array); } protected abstract Multiset<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 2.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/LoggingOutputStream.java
* * The stream will be flushed whenever a newline is detected. * Allows setting an optional prefix before each line of output. */ public abstract class LoggingOutputStream extends OutputStream { /** The starting length of the buffer */ private static final int DEFAULT_BUFFER_LENGTH = 4096; /** The buffer of bytes sent to the stream */ private byte[] buffer = new byte[DEFAULT_BUFFER_LENGTH];Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
} public void testNewReferenceArray_withLength() throws Exception { int length = 42; AtomicReferenceArray<String> refArray = Atomics.newReferenceArray(length); for (int i = 0; i < length; ++i) { assertThat(refArray.get(i)).isNull(); } assertThrows(IndexOutOfBoundsException.class, () -> refArray.get(length)); } public void testNewReferenceArray_withNegativeLength() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 13.9K bytes - Click Count (0) -
apache-maven/src/assembly/maven/bin/JvmConfigParser.java
public static void main(String[] args) { if (args.length < 2 || args.length > 3) { System.err.println("Usage: java JvmConfigParser.java <jvm.config-path> <maven-project-basedir> [output-file]"); System.exit(1); } Path jvmConfigPath = Paths.get(args[0]); String mavenProjectBasedir = args[1]; Path outputFile = args.length == 3 ? Paths.get(args[2]) : null;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Dec 10 16:40:06 GMT 2025 - 6.4K bytes - Click Count (0) -
internal/hash/checksum.go
t, n := binary.Uvarint(b) if n <= 0 { return nil } b = b[n:] typ := ChecksumType(t) length := typ.RawByteLen() if length == 0 || len(b) < length { return nil } // Read raw checksum bytes raw := make([]byte, length) copy(raw, b[:length]) b = b[length:] c := &Checksum{ Type: typ, Raw: raw, Encoded: base64.StdEncoding.EncodeToString(raw), }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 22 14:15:21 GMT 2025 - 18.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
byte[] actualDescrBytes = new byte[expectedDescrBytes.length]; System.arraycopy(dst, 2, actualDescrBytes, 0, expectedDescrBytes.length); assertArrayEquals(expectedDescrBytes, actualDescrBytes); // Verify level (0x0001 - 2 bytes) int descrEnd = 2 + expectedDescrBytes.length; assertEquals(0x01, dst[descrEnd]); assertEquals(0x00, dst[descrEnd + 1]);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0)