Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 626 for lang_th (0.03 sec)

  1. guava/src/com/google/common/collect/ObjectArrays.java

       */
      static @Nullable Object[] copyAsObjectArray(@Nullable Object[] elements, int offset, int length) {
        checkPositionIndexes(offset, offset + length, elements.length);
        if (length == 0) {
          return new Object[0];
        }
        @Nullable Object[] result = new Object[length];
        arraycopy(elements, offset, result, 0, length);
        return result;
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/InputValidator.java

                throw new IllegalArgumentException("Offsets and length must be non-negative");
            }
            if (srcOffset + length > src.length) {
                throw new IllegalArgumentException(
                        "Source array bounds exceeded: offset=" + srcOffset + ", length=" + length + ", array.length=" + src.length);
            }
            if (dstOffset + length > dst.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/ByteEncodableTest.java

            // Verify encoded length
            assertEquals(3, encodedLen, "Encoded length should be equal to the specified length");
    
            // Verify content
            assertArrayEquals(new byte[] { (byte) 0xFF, 0x01, 0x02, 0x03, 0x00 }, dest, "Encoded bytes should be placed at the correct offset");
        }
    
        @Test
        void testEncodeZeroLength() {
            // Test encoding with zero length
            byte[] data = { 0x01, 0x02, 0x03 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/ArrayUtil.java

                return a;
            }
            if (a.length == 0) {
                return b;
            }
            if (b.length == 0) {
                return a;
            }
            final boolean[] array = (boolean[]) Array.newInstance(boolean.class, a.length + b.length);
            System.arraycopy(a, 0, array, 0, a.length);
            System.arraycopy(b, 0, array, a.length, b.length);
            return array;
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 41.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/UnicodeStringTest.java

            assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.length, "Length should include zterm");
            assertEquals((testStringTrue.length() + 1) * 2, unicodeStringTrue.maximum_length, "Maximum length should include zterm");
            assertNotNull(unicodeStringTrue.buffer, "Buffer should not be null");
            assertEquals(testStringTrue.length() + 1, unicodeStringTrue.buffer.length, "Buffer length should include zterm");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Strings.java

        int maxSuffixLength = min(a.length(), b.length());
        int s = 0;
        while (s < maxSuffixLength && a.charAt(a.length() - s - 1) == b.charAt(b.length() - s - 1)) {
          s++;
        }
        if (validSurrogatePairAt(a, a.length() - s - 1)
            || validSurrogatePairAt(b, b.length() - s - 1)) {
          s--;
        }
        return a.subSequence(a.length() - s, a.length()).toString();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            byte[] outputBuffer = new byte[testData.length + 100];
            int writtenBytes =
                    compressionService.decompress(compressed, 0, compressed.length, outputBuffer, 50, CompressionService.COMPRESSION_LZ77);
    
            assertEquals(testData.length, writtenBytes);
    
            byte[] extracted = new byte[testData.length];
            System.arraycopy(outputBuffer, 50, extracted, 0, testData.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/HexdumpTest.java

            assertFalse(result.isEmpty());
            assertEquals(size * 2, result.length()); // Each byte becomes 2 hex chars
        }
    
        @Test
        @DisplayName("Should format with specific offset and length")
        void testHexdumpWithOffsetAndLength() {
            // Given
            byte[] data = createTestData(64);
            int offset = 16;
            int length = 32;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            }
            if (isDirect) {
                out.writeDirect(buf, off, length, 1);
                return;
            }
            out.write(buf, off, length);
        }
    
        @Override
        protected void doReceiveFragment(final byte[] buf, final boolean isDirect) throws IOException {
            int off, flags, length;
    
            if (buf.length < max_recv) {
                throw new IllegalArgumentException("buffer too small");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/Fingerprint2011.java

          result = murmurHash64WithSeed(bytes, offset, length, K0 ^ K1 ^ K2);
        } else if (length <= 64) {
          result = hashLength33To64(bytes, offset, length);
        } else {
          result = fullFingerprint(bytes, offset, length);
        }
    
        long u = length >= 8 ? load64(bytes, offset) : K0;
        long v = length >= 9 ? load64(bytes, offset + length - 8) : K0;
        result = hash128to64(result + v, u);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top