Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 544 for reading2 (0.06 sec)

  1. guava/src/com/google/common/io/ByteSink.java

      /**
       * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code
       * input}.
       *
       * @return the number of bytes written
       * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink
       */
      @CanIgnoreReturnValue
      public long writeFrom(InputStream input) throws IOException {
        checkNotNull(input);
    
        try (OutputStream out = openStream()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            SMB1SigningDigest.writeUTime(mockConfig, testTime, dst, 0);
    
            int expectedSeconds = (int) (testTime / 1000L);
            int actualSeconds = SMBUtil.readInt4(dst, 0);
            assertEquals(expectedSeconds, actualSeconds);
    
            // Test when current time is in DST but test time is not
            when(mockTimeZone.inDaylightTime(any(Date.class))).thenReturn(true) // current time
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/av/AvFlags.java

        public AvFlags(final int flags) {
            this(encode(flags));
        }
    
        /**
         * Gets the flags as an integer value
         * @return flags
         */
        public int getFlags() {
            return SMBUtil.readInt4(this.getRaw(), 0);
        }
    
        private static byte[] encode(final int flags) {
            final byte[] raw = new byte[4];
            SMBUtil.writeInt4(flags, raw, 0);
            return raw;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotification.java

         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 24) {
                throw new SMBProtocolDecodingException("Expected structureSize = 24");
            }
    
            this.oplockLevel = buffer[bufferIndex + 2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

            assertEquals(expectedTimestamp, avTimestamp.getTimestamp());
        }
    
        /**
         * Test getTimestamp method with a negative timestamp (though timestamps are usually positive).
         * This tests the underlying SMBUtil.readInt8 behavior.
         */
        @Test
        public void testGetTimestampNegative() {
            long expectedTimestamp = -1L; // Represents all bits set to 1 for an 8-byte long
            byte[] rawBytes = new byte[8];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            length = readInt4(buffer, bufferIndex);
            return 4;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
    
            if (errorCode != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileInputStream.java

        private byte[] tmp = new byte[1];
    
        SmbFile file;
    
        private boolean largeReadX;
    
        private final boolean unsharedFile;
    
        private boolean smb2;
    
        /**
         * Creates an input stream for reading from the specified SMB URL
         *
         * @param url the SMB URL to read from
         * @param tc
         *            context to use
         * @throws SmbException if an SMB error occurs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    channel = new RandomAccessFile(touchfile, "rw").getChannel();
                    lock = channel.lock();
    
                    if (touchfile.canRead()) {
                        getLogger().debug("Reading resolution-state from: " + touchfile);
                        props.load(Channels.newInputStream(channel));
                    }
    
                    props.setProperty(key, Long.toString(System.currentTimeMillis()));
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Apr 22 22:13:51 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. docs/debugging/inspect/decrypt-v2.go

    		os.Mkdir(extractDir, 0o755)
    		w, err := os.Create(dst)
    		if err != nil {
    			return fmt.Errorf("creating output file: %w", err)
    		}
    		_, err = io.Copy(w, stream)
    		if err != nil {
    			return fmt.Errorf("reading inspect stream: %w", err)
    		}
    		fmt.Printf("Extracted: %s\n", dst)
    		extracted = true
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 17 17:09:42 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/index.md

    The **Advanced User Guide** builds on this one, uses the same concepts, and teaches you some extra features.
    
    But you should first read the **Tutorial - User Guide** (what you are reading right now).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top