Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 406 for getByte (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator
    
            // Prepare byte array
            byte[] encryptionKey = "12345678".getBytes();
            byte[] domainNameBytes = "DOMAIN".getBytes(ServerMessageBlock.OEM_ENCODING);
            ByteBuffer buffer = ByteBuffer.allocate(response.byteCount);
            buffer.put(encryptionKey);
            buffer.put(domainNameBytes);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/CharsetsTest.java

      @GwtIncompatible // Non-UTF-8 Charset
      public void testWhyUsAsciiIsDangerous() {
        byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII);
        byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII);
        byte[] b3 = "????".getBytes(Charsets.US_ASCII);
        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertTrue(Arrays.equals(b1, b2));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlResponseTest.java

        }
    
        @Test
        public void testContentCache() {
            CurlResponse response = new CurlResponse();
            byte[] data = "test content".getBytes();
            ContentCache cache = new ContentCache(data);
    
            response.setContentCache(cache);
    
            // ContentCache is not directly accessible, but we can test through content methods
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/MavenArtifactMetadata.java

        public String toString() {
            return getGroupId() + ":" + getArtifactId() + ":" + getVersion() + ":"
                    + (getClassifier() == null ? "" : getClassifier()) + ":"
                    + (getType() == null ? DEFAULT_TYPE : getType());
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                    if (lastItem.isNull()) {
                        if (i == size() - 1 || get(i + 1).getType() == STRING_ITEM) {
                            remove(i);
                        } else if (get(i + 1).getType() == LIST_ITEM) {
                            Item item = ((ListItem) get(i + 1)).get(0);
                            if (item.getType() == COMBINATION_ITEM || item.getType() == STRING_ITEM) {
                                remove(i);
                            }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            int type = AvPair.MsvAvTimestamp;
            byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            AvPair avPair = new AvPair(type, raw);
    
            assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
            assertArrayEquals(raw, avPair.getRaw(), "Raw data should match the constructor argument.");
    
            // Test with another type and empty raw data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

            buf.append("\"memory\":{");
            buf.append("\"heap\":{");
            append(buf, "used", () -> mem.getHeapUsed().getBytes()).append(',');
            append(buf, "committed", () -> mem.getHeapCommitted().getBytes()).append(',');
            append(buf, "max", () -> mem.getHeapMax().getBytes()).append(',');
            append(buf, "percent", () -> mem.getHeapUsedPercent());
            buf.append("},");
            buf.append("\"non_heap\":{");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        assertThat(fingerprint(stringA.getBytes(UTF_8)))
            .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8)));
    
        // ISO 8859-1 only has 0-255 (ubyte) representation so throws away UTF-8 characters
        // greater than 127 (ie with their top bit set).
        // Don't attempt to do this in real code.
        assertEquals(
            fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            String name1 = "WORKSTATION     ";
            System.arraycopy(name1.getBytes("US-ASCII"), 0, src, srcIndex + 1, 16);
            src[srcIndex + 16] = 0x00; // hex code
            src[srcIndex + 17] = 0x04; // flags: active
    
            // Second name entry (18 bytes)
            String name2 = "DOMAIN          ";
            System.arraycopy(name2.getBytes("US-ASCII"), 0, src, srcIndex + 19, 16);
            src[srcIndex + 34] = 0x00; // hex code
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertEquals("  Bearer Token  ", exception.getType());
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_getType_immutability() {
            // Test that getType returns the same value consistently
            String type = "ApiKey";
            String message = "API key expired";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top