Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 316 for SetBytes (1.38 sec)

  1. src/test/java/jcifs/http/NtlmSspTest.java

            String domain = "DOMAIN";
            byte[] domainBytes = domain.getBytes();
            for (int i = 0; i < domainBytes.length; i++) {
                message[112 + i * 2] = domainBytes[i];
                message[112 + i * 2 + 1] = 0;
            }
    
            // Add User "user" in Unicode at offset 124
            String user = "user";
            byte[] userBytes = user.getBytes();
            for (int i = 0; i < userBytes.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java

                assertEquals(200, responseData.getHttpStatusCode());
                assertEquals(baseUrl + "file1.txt", responseData.getUrl());
                assertEquals("file1", new String(InputStreamUtil.getBytes(responseData.getResponseBody())));
                assertEquals(5, responseData.getContentLength());
            }
            try (final ResponseData responseData = smbClient.doGet(baseUrl + "dir1/file2.txt")) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

    /**
     * @author higa
     *
     */
    public class Base64UtilTest extends TestCase {
    
        private static final String ORIGINAL = "how now brown cow\r\n";
    
        private static final byte[] BINARY_DATA = ORIGINAL.getBytes();
    
        private static final String ENCODED_DATA = "aG93IG5vdyBicm93biBjb3cNCg==";
    
        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/TestCharSink.java

      private final TestByteSink byteSink;
    
      public TestCharSink(TestOption... options) {
        this.byteSink = new TestByteSink(options);
      }
    
      public String getString() {
        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSink.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
        return byteSink.wasStreamClosed();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ByteArrayDataOutput.java

      void writeChars(String s);
    
      @Override
      void writeUTF(String s);
    
      /**
       * @deprecated This method is dangerous as it discards the high byte of every character. For
       *     UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}.
       */
      @Deprecated
      @Override
      void writeBytes(String s);
    
      /** Returns the contents that have been written to this instance, as a byte array. */
      byte[] toByteArray();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // ShortName (24 bytes)
            for (int i = 0; i < 24; i++) {
                buffer[dataOffset + 70 + i] = 0;
            }
            // FileName
            "test".getBytes(StandardCharsets.UTF_16LE);
            System.arraycopy("test".getBytes(StandardCharsets.UTF_16LE), 0, buffer, dataOffset + 94, 8);
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getResults());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java

        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex);
            dstIndex += 2;
            final byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE);
            System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length);
            dstIndex += pathBytes.length;
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2; // null terminator
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                }
            };
            File file = File.createTempFile("test", ".properties");
            file.deleteOnExit();
            FileUtil.writeBytes(file.getAbsolutePath(), "ldap.security.principal=******@****.***".getBytes("UTF-8"));
            DynamicProperties systemProps = new DynamicProperties(file);
    
            // Get existing component and update it instead of registering new one
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            for (int i = 0; i < 16; i++) {
                assertEquals(fileId[i], buffer[Smb2Constants.SMB2_HEADER_LENGTH + 8 + i]);
            }
    
            // Verify filename
            byte[] expectedFileName = "*.txt".getBytes(StandardCharsets.UTF_16LE);
            assertTrue(bytesWritten > 32);
            assertEquals(32 + expectedFileName.length, bytesWritten);
        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat without fileName")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/MIENameTest.java

        }
    
        @Test
        @DisplayName("Parses a valid buffer and exposes fields")
        void parseValidBuffer() {
            // Arrange
            String name = "******@****.***";
            byte[] buf = buildBuffer(oidDer(), name.getBytes(StandardCharsets.US_ASCII));
    
            // Act
            MIEName parsed = new MIEName(buf);
    
            // Assert
            // equals should match case-insensitively for name and equal OID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top