Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 406 for getByte (1.3 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/io/TestByteSink.java

      private boolean outputStreamOpened;
      private boolean outputStreamClosed;
    
      public TestByteSink(TestOption... options) {
        this.options = ImmutableSet.copyOf(options);
      }
    
      byte[] getBytes() {
        return bytes.toByteArray();
      }
    
      @Override
      public boolean wasStreamOpened() {
        return outputStreamOpened;
      }
    
      @Override
      public boolean wasStreamClosed() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/crypto/CachedCipher.java

         * @param text
         *            the text to encrypt
         * @return the encrypted text
         */
        public String encryptoText(final String text) {
            try {
                return Base64Util.encode(encrypto(text.getBytes(charsetName)));
            } catch (final UnsupportedEncodingException e) {
                throw new UnsupportedEncodingRuntimeException(e);
            }
        }
    
        /**
         * Decrypts the given data.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.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. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/main/java/jcifs/ntlmssp/av/AvPair.java

        public AvPair(final int type, final byte[] raw) {
            this.type = type;
            this.raw = raw;
        }
    
        /**
         * Gets the AV pair type
         * @return the type
         */
        public final int getType() {
            return this.type;
        }
    
        /**
         * Gets the raw data bytes
         * @return the raw
         */
        public final byte[] getRaw() {
            return this.raw;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                    dependency.getArtifactId(),
                    dependency.getVersion(),
                    dependency.getScope(),
                    dependency.getType(),
                    dependency.getClassifier(),
                    new TestArtifactHandler(dependency.getType()));
    
            if (Artifact.SCOPE_SYSTEM.equals(dependency.getScope())) {
                artifact.setFile(new File(dependency.getSystemPath()));
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 10 08:42:00 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top