- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 315 for algo (0.02 seconds)
-
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()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.7K bytes - Click Count (0) -
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) } }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.5K bytes - Click Count (0) -
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 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jan 17 19:19:30 GMT 2025 - 6.2K bytes - Click Count (0) -
internal/bucket/encryption/bucket-sse-config.go
} return } switch b.Algo() { case xhttp.AmzEncryptionAES: headers.Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionAES) case xhttp.AmzEncryptionKMS: headers.Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionKMS) headers.Set(xhttp.AmzServerSideEncryptionKmsID, b.KeyID()) } } // Algo returns the SSE algorithm specified by the SSE configuration.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Oct 25 00:44:15 GMT 2022 - 4.9K bytes - Click Count (0) -
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
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 2.7K bytes - Click Count (0) -
docs/es/docs/advanced/events.md
### Async Context Manager { #async-context-manager } Si revisas, la función está decorada con un `@asynccontextmanager`. Eso convierte a la función en algo llamado un "**async context manager**". {* ../../docs_src/events/tutorial003_py39.py hl[1,13] *} Un **context manager** en Python es algo que puedes usar en un statement `with`, por ejemplo, `open()` puede ser usado como un context manager: ```Python with open("file.txt") as file:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 8.5K bytes - Click Count (0) -
docs/es/docs/tutorial/encoder.md
# Codificador compatible con JSON { #json-compatible-encoder } Hay algunos casos en los que podrías necesitar convertir un tipo de dato (como un modelo de Pydantic) a algo compatible con JSON (como un `dict`, `list`, etc). Por ejemplo, si necesitas almacenarlo en una base de datos. Para eso, **FastAPI** proporciona una función `jsonable_encoder()`. ## Usando el `jsonable_encoder` { #using-the-jsonable-encoder }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 1.8K bytes - Click Count (0) -
src/cmd/api/testdata/src/issue21181/p/p_amd64.go
package p import "indirect" var in = []algo{ {indirect.F},
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Oct 05 17:53:43 GMT 2018 - 64 bytes - Click Count (0) -
docs/es/docs/advanced/security/http-basic-auth.md
Y envían un request con un nombre de usuario `johndoe` y una contraseña `love123`. Entonces el código de Python en tu aplicación equivaldría a algo como: ```Python if "johndoe" == "stanleyjobson" and "love123" == "swordfish": ... ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 5.4K bytes - Click Count (0) -
src/cmd/api/testdata/src/issue21181/p/p.go
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Oct 05 17:53:43 GMT 2018 - 78 bytes - Click Count (0)