Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 277 for setBytes (0.04 sec)

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

        }
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putString(CharSequence charSequence, Charset charset) {
        return putBytes(charSequence.toString().getBytes(charset));
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes) {
        return putBytes(bytes, 0, bytes.length);
      }
    
      @Override
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            // Expected format: buffer format (0x04) + path string (null terminated)
            byte[] expected = new byte[directoryName.length() + 2];
            expected[0] = 0x04; // Buffer format
            System.arraycopy(directoryName.getBytes(StandardCharsets.UTF_8), 0, expected, 1, directoryName.length());
            expected[directoryName.length() + 1] = 0x00; // Null terminator
    
            byte[] dst = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/DurableHandleResponse.java

        /**
         * Context name for durable handle response
         */
        public static final String CONTEXT_NAME = "DHnQ";
    
        private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes();
    
        // The response structure is reserved and must be zero (8 bytes)
        private byte[] reserved = new byte[8];
    
        /**
         * Create a new durable handle response
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/MessageTest.java

            // Initially, rawPayload should be null
            assertNull(message.getRawPayload(), "rawPayload should be null initially");
    
            // Set a new payload and verify
            byte[] payload1 = "test_payload_1".getBytes();
            message.setRawPayload(payload1);
            assertArrayEquals(payload1, message.getRawPayload(), "getRawPayload should return the set payload");
    
            // Set another payload and verify
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            response.getServerData().scapabilities = 0;
            response.getServerData().encryptionKeyLength = 8;
            // Domain name in OEM encoding (ASCII) with null terminator
            byte[] domainBytes = "DOMAIN\0".getBytes("US-ASCII");
            // Use reflection to set protected byteCount field
            int byteCountValue = 8 + domainBytes.length;
            setByteCount(response, byteCountValue);
            byte[] buffer = new byte[byteCountValue];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertTrue(Arrays.equals(ASCII.getBytes(US_ASCII), Files.toByteArray(asciiFile)));
        assertTrue(Arrays.equals(I18N.getBytes(UTF_8), Files.toByteArray(i18nFile)));
        assertTrue(Arrays.equals(I18N.getBytes(UTF_8), Files.asByteSource(i18nFile).read()));
      }
    
      /** A {@link File} that provides a specialized value for {@link File#length()}. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java

          buffer.putChar(input.charAt(i));
        }
        return hashBytes(buffer.array());
      }
    
      @Override
      public HashCode hashString(CharSequence input, Charset charset) {
        return hashBytes(input.toString().getBytes(charset));
      }
    
      @Override
      public abstract HashCode hashBytes(byte[] input, int off, int len);
    
      @Override
      public HashCode hashBytes(ByteBuffer input) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            // Need to include space for actual string data
            int stringDataStart = 28; // After the referral structure
            String testPath = "\\server\\share";
            byte[] pathBytes = testPath.getBytes(java.nio.charset.StandardCharsets.UTF_16LE);
            int bufferSize = stringDataStart + pathBytes.length + 2; // +2 for null terminator
            byte[] buffer = new byte[bufferSize];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

            super.setUp();
            file1 = File.createTempFile("synonym", ".txt");
            FileUtil.writeBytes(file1.getAbsolutePath(),
                    "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2"
                            .getBytes(Constants.UTF_8));
            // TODO set up opensearch and dictionaryManager
            synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date());
        }
    
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java

        /**
         * Context name for durable handle request
         */
        public static final String CONTEXT_NAME = "DHnQ";
    
        private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes();
        private static final int STRUCTURE_SIZE = 16;
    
        private long reserved; // Must be zero
    
        /**
         * Create a new durable handle request
         */
        public DurableHandleRequest() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top