Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 277 for setBytes (0.43 sec)

  1. 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)
  2. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

                try {
                    domain = DEFAULT_DOMAIN.getBytes(UNI_ENCODING);
                } catch (final IOException ex) {}
            }
            final int domainLength = domain.length;
            byte[] server = {};
            try {
                final String host = NbtAddress.getLocalHost().getHostName();
                if (host != null) {
                    try {
                        server = host.getBytes(UNI_ENCODING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/AbstractStreamingHasher.java

       * even to an intermediate buffer) should be considerably more efficient than potentially
       * copying the CharSequence to a String and then calling getBytes(Charset) on that String, in
       * reality there are optimizations that make the getBytes(Charset) approach considerably faster,
       * at least for commonly used charsets like UTF-8.
       */
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

        /**
         * Constructs a pipe wait request without timeout.
         *
         * @param name the pipe name to wait for
         */
        public FsctlPipeWaitRequest(final String name) {
            this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE);
            this.timeoutSpecified = false;
            this.timeout = 0;
        }
    
        /**
         * Constructs a pipe wait request with timeout.
         *
         * @param name the pipe name to wait for
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/Base64Test.java

            return Stream.of(Arguments.of(new byte[0], ""), Arguments.of(new byte[] { (byte) 0x41 }, "QQ=="), // "A"
                    Arguments.of(new byte[] { (byte) 0x41, (byte) 0x42 }, "QUI="), // "AB"
                    Arguments.of("Man".getBytes(), "TWFu"), // 3 bytes, no padding
                    Arguments.of(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00 }, "AAAA"), // all zeros
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/TestCharSource.java

      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
        this.byteSource = new TestByteSource(content.getBytes(UTF_8), options);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSource.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

            final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class");
            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
                is.close();
            }
        }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  8. cmd/metrics-v3-api.go

    		recvBytes := inOut.In
    		if recvBytes > 0 {
    			m.Set(apiTrafficSentBytes, float64(recvBytes), "bucket", bucket, "type", "s3")
    		}
    		sentBytes := inOut.Out
    		if sentBytes > 0 {
    			m.Set(apiTrafficRecvBytes, float64(sentBytes), "bucket", bucket, "type", "s3")
    		}
    
    		httpStats := globalBucketHTTPStats.load(bucket)
    		for k, v := range httpStats.currentS3Requests.Load(false) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                    assertEquals(TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length, Type2Message.readUShort(targetInfo, 2)); // Length
                    assertEquals(TEST_DOMAIN,
                            new String(Arrays.copyOfRange(targetInfo, 4, 4 + TEST_DOMAIN.getBytes(Type2Message.UNI_ENCODING).length),
                                    Type2Message.UNI_ENCODING));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top