Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for ALGO (0.02 sec)

  1. cmd/bitrot.go

    func bitrotShardFileSize(size int64, shardSize int64, algo BitrotAlgorithm) int64 {
    	if algo != HighwayHash256S {
    		return size
    	}
    	return ceilFrac(size, shardSize)*int64(algo.New().Size()) + size
    }
    
    // bitrotVerify a single stream of data.
    func bitrotVerify(r io.Reader, wantSize, partSize int64, algo BitrotAlgorithm, want []byte, shardSize int64) error {
    	if algo != HighwayHash256S {
    		h := algo.New()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Feb 26 19:26:13 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. cmd/erasure-coding.go

    	for i := range testData {
    		testData[i] = byte(i)
    	}
    	ok := true
    	for algo := invalidErasureAlgo + 1; algo < lastErasureAlgo; algo++ {
    		for _, conf := range testConfigs {
    			failOnErr := func(err error) {
    				if err != nil {
    					logger.Fatal(errSelfTestFailure, "%v: error on self-test [d:%d,p:%d]: %v. Unsafe to start server.\n", algo, conf[0], conf[1], err)
    				}
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. cmd/bitrot-streaming.go

    func newStreamingBitrotWriterBuffer(w io.Writer, algo BitrotAlgorithm, shardSize int64) io.Writer {
    	return &streamingBitrotWriter{iow: ioutil.NopCloser(w), h: algo.New(), shardSize: shardSize, canClose: nil, closeWithErr: func(err error) {}}
    }
    
    // Returns streaming bitrot writer implementation.
    func newStreamingBitrotWriter(disk StorageAPI, origvolume, volume, filePath string, length int64, algo BitrotAlgorithm, shardSize int64) io.Writer {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jan 17 19:19:30 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. cmd/bitrot-whole.go

    func (b *wholeBitrotWriter) Close() error {
    	return nil
    }
    
    // Returns whole-file bitrot writer.
    func newWholeBitrotWriter(disk StorageAPI, volume, filePath string, algo BitrotAlgorithm, shardSize int64) io.WriteCloser {
    	return &wholeBitrotWriter{disk, volume, filePath, shardSize, algo.New()}
    }
    
    // Implementation to verify bitrot for the whole file.
    type wholeBitrotReader struct {
    	disk       StorageAPI
    	volume     string
    	filePath   string
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/behind-a-proxy.md

        "servers": [
            {
                "url": "/api/v1"
            }
        ],
        "paths": {
                // Mais coisas aqui
        }
    }
    ```
    
    Neste exemplo, o "Proxy" poderia ser algo como **Traefik**. E o servidor seria algo como CLI do FastAPI com **Uvicorn**, executando sua aplicação FastAPI.
    
    ### Fornecendo o `root_path`
    
    Para conseguir isso, você pode usar a opção de linha de comando `--root-path` assim:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/events.md

    ### Gerenciador de Contexto Assíncrono
    
    Se você verificar, a função está decorada com um `@asynccontextmanager`.
    
    Que converte a função em algo chamado de "**Gerenciador de Contexto Assíncrono**".
    
    {* ../../docs_src/events/tutorial003.py hl[1,13] *}
    
    Um **gerenciador de contexto** em Python é algo que você pode usar em uma declaração `with`, por exemplo, `open()` pode ser usado como um gerenciador de contexto:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. docs/pt/docs/async.md

    Código assíncrono apenas significa que a linguagem 💬 tem um jeito de dizer para o computador / programa 🤖 que em certo ponto do código, ele 🤖 terá que esperar *algo* finalizar em outro lugar. Vamos dizer que esse *algo* seja chamado "arquivo lento" 📝.
    
    Então, durante esse tempo, o computador pode ir e fazer outro trabalho, enquanto o "arquivo lento" 📝 termina.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(context.size(), encodedSize);
                assertEquals(1, buffer[0]); // hash algo count (little endian)
                assertEquals(0, buffer[1]);
                assertEquals(8, buffer[2]); // salt length (little endian)
                assertEquals(0, buffer[3]);
                assertEquals(1, buffer[4]); // SHA512 hash algo (little endian)
                assertEquals(0, buffer[5]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/cmd/api/testdata/src/issue21181/p/p.go

    package p
    
    import (
    	"dep"
    )
    
    type algo struct {
    	indrt func(dep.Interface)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 05 17:53:43 UTC 2018
    - 78 bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

         */
        public boolean supportsAlgorithm(int algorithm) {
            if (this.compressionAlgorithms == null) {
                return false;
            }
            for (int algo : this.compressionAlgorithms) {
                if (algo == algorithm) {
                    return true;
                }
            }
            return false;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top