Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 321 for metabytes (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            assertTrue(bytesWritten > 0);
    
            // Verify name length field at offset 46 (after 44 bytes of fixed fields + 2 for name offset)
            byte[] nameBytes = longPath.getBytes(StandardCharsets.UTF_16LE);
            int nameLenInBuffer = (buffer[46] & 0xFF) | ((buffer[47] & 0xFF) << 8);
            assertEquals(nameBytes.length, nameLenInBuffer);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            void testEncodeDecodeCycle() throws SMBProtocolDecodingException {
                // Arrange
                int[] hashAlgos = new int[] { 1, 2, 3, 4, 5 };
                byte[] salt = "TestSaltValue123".getBytes();
                PreauthIntegrityNegotiateContext originalContext = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                // Act
                byte[] buffer = new byte[originalContext.size()];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/Config.java

                }
            }
    
            level = Config.getInt("jcifs.smb1.util.loglevel", -1);
            if (level != -1) {
                LogStream.setLevel(level);
            }
    
            try {
                "".getBytes(DEFAULT_OEM_ENCODING);
            } catch (final UnsupportedEncodingException uee) {
                if (LogStream.level >= 2) {
                    log.println("WARNING: The default OEM encoding " + DEFAULT_OEM_ENCODING
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                    try (GZIPOutputStream gos = new GZIPOutputStream(baos)) {
                        gos.write(hash.getBytes(Constants.UTF_8));
                    }
                    return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray());
                } catch (final IOException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/http/NetworkExplorerTest.java

            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
            byte[] contentBytes = content.getBytes();
    
            when(smbFile.length()).thenReturn((long) contentBytes.length);
            when(smbFile.getInputStream()).thenReturn(new ByteArrayInputStream(contentBytes));
    
            // Use spy to avoid actual SMB operations
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            byte[] data = new byte[100];
    
            digest.sign(data, 0, data.length, mockRequest, mockResponse);
    
            // Check if BSRSPYL signature is written
            byte[] expectedSignature = "BSRSPYL ".getBytes();
            byte[] actualSignature = new byte[8];
            System.arraycopy(data, SmbConstants.SIGNATURE_OFFSET, actualSignature, 0, 8);
            assertArrayEquals(expectedSignature, actualSignature);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/LmhostsTest.java

                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
                        // Mock the read method to return simple content
                        byte[] includeContent = "192.168.1.200 INCLUDEHOST\n".getBytes();
                        int[] index = { 0 };
                        when(mock.read()).thenAnswer(inv -> {
                            if (index[0] < includeContent.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

            }
    
            validate(form, messages -> {}, () -> asEditHtml(form));
            verifyToken(() -> asEditHtml(form));
            try {
                write(jspFile.getAbsolutePath(), decodeJsp(form.content).getBytes(Constants.UTF_8));
                saveInfo(messages -> messages.addSuccessUpdateDesignJspFile(GLOBAL, jspFile.getAbsolutePath()));
            } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

            String testData =
                    "This is test data for compression that should be long enough to actually compress effectively when using gzip compression algorithm";
            byte[] originalBytes = testData.getBytes();
    
            byte[] compressed = searchHelper.gzipCompress(originalBytes);
            byte[] decompressed = searchHelper.gzipDecompress(compressed);
    
            assertEquals(testData, new String(decompressed));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/Utf8Test.java

          }
          boolean isRoundTrippable = Utf8.isWellFormed(bytes);
          assertEquals(isRoundTrippable, Utf8.isWellFormed(bytes, 0, numBytes));
          String s = new String(bytes, UTF_8);
          byte[] bytesReencoded = s.getBytes(UTF_8);
          boolean bytesEqual = Arrays.equals(bytes, bytesReencoded);
    
          if (bytesEqual != isRoundTrippable) {
            fail();
          }
          if (isRoundTrippable) {
            countRoundTripped++;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top