Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 653 for Write (0.05 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        val metadataBuffer = Buffer()
        metadataBuffer.write(metadata)
    
        val fileOperator = FileOperator(file!!.channel)
        fileOperator.write(FILE_HEADER_SIZE + upstreamSize, metadataBuffer, metadata.size.toLong())
      }
    
      @Throws(IOException::class)
      fun commit(upstreamSize: Long) {
        // Write metadata to the end of the file.
        writeMetadata(upstreamSize)
        file!!.channel.force(false)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. cmd/batch-rotate_gen.go

    func (z BatchJobKeyRotateEncryption) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "Type"
    	err = en.Append(0x83, 0xa4, 0x54, 0x79, 0x70, 0x65)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(string(z.Type))
    	if err != nil {
    		err = msgp.WrapError(err, "Type")
    		return
    	}
    	// write "Key"
    	err = en.Append(0xa3, 0x4b, 0x65, 0x79)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Key)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(b);
    
        verify(hashFunction).newHasher();
        verify(hasher).putByte((byte) b);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testWrite_putByteArray() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);
        out.write(buf);
    
        verify(hashFunction).newHasher();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 11 22:00:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. cmd/batch-handlers_gen.go

    	err = en.Append(0xa3, 0x66, 0x6c, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteBool(z.Failed)
    	if err != nil {
    		err = msgp.WrapError(err, "Failed")
    		return
    	}
    	// write "lbkt"
    	err = en.Append(0xa4, 0x6c, 0x62, 0x6b, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Bucket)
    	if err != nil {
    		err = msgp.WrapError(err, "Bucket")
    		return
    	}
    	// write "lobj"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    		return "", "", false
    	}
    	return name[:i], name[i+1:], true
    }
    
    // Write writes to the current file in the tar archive.
    // Write returns the error [ErrWriteTooLong] if more than
    // Header.Size bytes are written after [Writer.WriteHeader].
    //
    // Calling Write on special types like [TypeLink], [TypeSymlink], [TypeChar],
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. cmd/batch-replicate_gen.go

    		return
    	}
    	// write "Path"
    	err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Path)
    	if err != nil {
    		err = msgp.WrapError(err, "Path")
    		return
    	}
    	// write "Creds"
    	err = en.Append(0xa5, 0x43, 0x72, 0x65, 0x64, 0x73)
    	if err != nil {
    		return
    	}
    	// map header, size 3
    	// write "AccessKey"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  7. cmd/local-locker.go

    	if lri, reply = l.lockMap[resource]; !reply {
    		// No lock is held on the given name
    		return true, nil
    	}
    	if isWriteLock(lri) {
    		// A write-lock is held, cannot release a read lock
    		return false, fmt.Errorf("RUnlock attempted on a write locked entity: %s", resource)
    	}
    	l.removeEntry(resource, args, &lri)
    	return reply, nil
    }
    
    type lockStats struct {
    	Total  int
    	Writes int
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/archive/zip/writer.go

    	crc32     hash.Hash32
    	closed    bool
    }
    
    func (w *fileWriter) Write(p []byte) (int, error) {
    	if w.closed {
    		return 0, errors.New("zip: write to closed file")
    	}
    	if w.raw {
    		return w.zipw.Write(p)
    	}
    	w.crc32.Write(p)
    	return w.rawCount.Write(p)
    }
    
    func (w *fileWriter) close() error {
    	if w.closed {
    		return errors.New("zip: file closed twice")
    	}
    	w.closed = true
    	if w.raw {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/HashingOutputStream.java

        this.hasher = checkNotNull(hashFunction.newHasher());
      }
    
      @Override
      public void write(int b) throws IOException {
        hasher.putByte((byte) b);
        out.write(b);
      }
    
      @Override
      public void write(byte[] bytes, int off, int len) throws IOException {
        hasher.putBytes(bytes, off, len);
        out.write(bytes, off, len);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 11 22:00:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. docs/metrics/healthcheck/README.md

    ## Cluster probe
    
    ### Cluster-writeable probe
    
    The reply is '200 OK' if cluster has write quorum if not it returns '503 Service Unavailable'.
    
    ```
    curl http://minio1:9001/minio/health/cluster
    HTTP/1.1 503 Service Unavailable
    Accept-Ranges: bytes
    Content-Length: 0
    Server: MinIO
    Vary: Origin
    X-Amz-Bucket-Region: us-east-1
    X-Minio-Write-Quorum: 3
    X-Amz-Request-Id: 16239D6AB80EBECF
    X-Xss-Protection: 1; mode=block
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 06 16:18:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top