Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 406 for getByte (0.04 sec)

  1. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

              } else {
                int codePoint = Character.codePointAt(input, i);
                if (codePoint == c) {
                  // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves
                  putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset));
                  return this;
                }
                i++;
                update(4, codePointToFourUtf8Bytes(codePoint));
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type2Message.java

                if (targetName != null && targetName.length() != 0) {
                    targetBytes = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? targetName.getBytes(UNI_ENCODING)
                            : targetName.toUpperCase().getBytes(getOEMEncoding());
                    size += targetBytes.length;
                } else {
                    flags &= 0xffffffff ^ NTLMSSP_REQUEST_TARGET;
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            String pipeName = "TestPipe";
            FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName);
    
            // Verify size calculation
            int expectedSize = 14 + pipeName.getBytes(StandardCharsets.UTF_16LE).length;
            assertEquals(expectedSize, request.size());
        }
    
        @Test
        @DisplayName("Test constructor with name and timeout sets correct fields")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

        }
    
        @Test
        public void testAsciiEncoding() throws Exception {
            String msg = "\u00A1\u00A2"; // same Unicode string
            byte[] asciiBytes = msg.getBytes(SmbConstants.DEFAULT_OEM_ENCODING);
            assertTrue(asciiBytes.length > 0, "ASCII encoding should produce bytes");
        }
    
        @Test
        public void testBufferCreation() throws UnsupportedEncodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

                return buckets.stream().map(e -> {
                    final Map<String, Object> map = new HashMap<>();
                    map.put(ID, Base64.getUrlEncoder().encodeToString(e.getKeyAsString().getBytes(StandardCharsets.UTF_8)));
                    map.put(KEY, e.getKeyAsString());
                    map.put(COUNT, e.getDocCount());
                    return map;
                }).collect(Collectors.toList());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            SMBUtil.writeInt4(1, buffer, notifyOffset + 4); // Action (FILE_ACTION_ADDED)
            // Write filename in Unicode
            String fileName = "test.txt";
            byte[] fileNameBytes = fileName.getBytes("UnicodeLittleUnmarked");
            SMBUtil.writeInt4(fileNameBytes.length, buffer, notifyOffset + 8); // FileNameLength
            System.arraycopy(fileNameBytes, 0, buffer, notifyOffset + 12, fileNameBytes.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            assertEquals(0, dst[1]);
    
            // Verify descriptor (WrLehDO\0B16BBDz\0 in ASCII)
            String expectedDescr = "WrLehDO\u0000B16BBDz\u0000";
            byte[] expectedDescrBytes = expectedDescr.getBytes("ASCII");
            byte[] actualDescrBytes = new byte[expectedDescrBytes.length];
            System.arraycopy(dst, 2, actualDescrBytes, 0, expectedDescrBytes.length);
            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        assertThat(encoding.encode(decoded.getBytes(UTF_8))).isEqualTo(encoded);
      }
    
      private static void testEncodesWithOffset(
          BaseEncoding encoding, String decoded, int offset, int len, String encoded) {
        assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            DefaultToolchain toolchain = newDefaultToolchain(model, "TYPE");
            assertEquals("TYPE", toolchain.getType());
    
            model.setType("MODEL_TYPE");
            toolchain = newDefaultToolchain(model);
            assertEquals("MODEL_TYPE", toolchain.getType());
        }
    
        @Test
        void testGetLogger() {
            ToolchainModel model = new ToolchainModel();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

                    SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, SmbConstants.FILE_WRITE_DATA,
                    SmbConstants.DEFAULT_SHARING);
    
            byte[] data1 = "Hello ".getBytes();
            byte[] data2 = "World".getBytes();
    
            // When
            outputStream.write(data1);
            outputStream.write(data2);
    
            // Then - verify two write requests were sent
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top