Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,144 for rewrite (0.13 sec)

  1. cmd/sftp-server-driver.go

    func (w *writerAt) WriteAt(b []byte, offset int64) (n int, err error) {
    	w.m.Lock()
    	defer w.m.Unlock()
    
    	if w.nextOffset == offset {
    		n, err = w.w.Write(b)
    		w.nextOffset += int64(n)
    	} else {
    		if offset > w.nextOffset+ftpMaxWriteOffset {
    			return 0, fmt.Errorf("write offset %d is too far ahead of next offset %d", offset, w.nextOffset)
    		}
    		w.buffer[offset] = make([]byte, len(b))
    		copy(w.buffer[offset], b)
    		n = len(b)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 10 16:35:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle write at buffer boundary")
            void testWriteAtBufferBoundary() {
                byte[] buffer = new byte[100];
    
                // Try to write at position that would exceed buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. docs/smb3-features/01-smb3-lease-design.md

            
            writeInt4(buffer, offset + 12, dataOffset - offset);  // DataOffset
            
            // Write context name
            System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, getName().length());
            
            // Write lease data
            System.arraycopy(leaseKey.getKey(), 0, buffer, dataOffset, 16);  // LeaseKey
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle write at buffer boundary")
            void testWriteAtBufferBoundary() {
                request.setReadLength(1024);
    
                byte[] buffer = new byte[100];
    
                // Try to write at position that would exceed buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

        /**
         * Write data to RDMA connection
         *
         * @param buffer buffer containing data to write
         * @param remoteAddress remote memory address for RDMA write
         * @param remoteKey remote memory key
         * @param length number of bytes to write
         * @return number of bytes actually written
         * @throws IOException if write operation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. cmd/sts-handlers_test.go

    	}
    
    	gotBuckets := set.NewStringSet()
    	for _, b := range accInfo.Buckets {
    		gotBuckets.Add(b.Name)
    		if !b.Access.Read || !b.Access.Write {
    			c.Fatalf("root user should have read and write access to bucket: %v", b.Name)
    		}
    	}
    	shouldHaveBuckets := set.CreateStringSet(bucket2, bucket)
    	if !gotBuckets.Equals(shouldHaveBuckets) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 100.2K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

         */
    
        @Override
        public void write(final int b) throws IOException {
            tmp[0] = (byte) b;
            write(tmp, 0, 1);
        }
    
        /**
         * Writes b.length bytes from the specified byte array to this
         * file output stream.
         *
         * @throws IOException if a network error occurs
         */
    
        @Override
        public void write(final byte[] b) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SneakyThrows.java

       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
       *
       * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to
       * sneaky checked exception.
       *
       * @return never; this method declares a return type of {@link Error} only so that callers can
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SneakyThrows.java

       * However, we can't usually write {@code throw t;} when {@code t} has a static type of {@link
       * Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}.
       *
       * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to
       * sneaky checked exception.
       *
       * @return never; this method declares a return type of {@link Error} only so that callers can
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

         */
        public enum RequestType {
            /** Send operation */
            SEND,
            /** Receive operation */
            RECEIVE,
            /** RDMA read operation */
            READ,
            /** RDMA write operation */
            WRITE
        }
    
        private final long requestId;
        private final RequestType type;
        private final RdmaMemoryRegion memoryRegion;
        private volatile boolean completed;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top