- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 158 for blockSize (0.13 sec)
-
src/internal/zstd/block.go
// data in r.buffer. The blockSize argument is the compressed size. // RFC 3.1.1.3. func (r *Reader) compressedBlock(blockSize int) error { if len(r.compressedBuf) >= blockSize { r.compressedBuf = r.compressedBuf[:blockSize] } else { // We know that blockSize <= 128K, // so this won't allocate an enormous amount. need := blockSize - len(r.compressedBuf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 17:57:43 UTC 2023 - 10.2K bytes - Viewed (0) -
src/crypto/sha1/sha1.go
"errors" "hash" "internal/byteorder" ) func init() { crypto.RegisterHash(crypto.SHA1, New) } // The size of a SHA-1 checksum in bytes. const Size = 20 // The blocksize of SHA-1 in bytes. const BlockSize = 64 const ( chunk = 64 init0 = 0x67452301 init1 = 0xEFCDAB89 init2 = 0x98BADCFE init3 = 0x10325476 init4 = 0xC3D2E1F0 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 5.7K bytes - Viewed (0) -
src/internal/zstd/zstd.go
lastBlock := header&1 != 0 blockType := (header >> 1) & 3 blockSize := int(header >> 3) // Maximum block size is smaller of window size and 128K. // We don't record the window size for a single segment frame, // so just use 128K. RFC 3.1.1.2.3, 3.1.1.2.4. if blockSize > 128<<10 || (r.window.size > 0 && blockSize > r.window.size) { return r.makeError(relativeOffset, "block size too large") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 04:10:45 UTC 2024 - 12.7K bytes - Viewed (0) -
src/crypto/tls/ticket.go
if len(ticketKeys) == 0 { return nil, errors.New("tls: internal error: session ticket keys unavailable") } encrypted := make([]byte, aes.BlockSize+len(state)+sha256.Size) iv := encrypted[:aes.BlockSize] ciphertext := encrypted[aes.BlockSize : len(encrypted)-sha256.Size] authenticated := encrypted[:len(encrypted)-sha256.Size] macBytes := encrypted[len(encrypted)-sha256.Size:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 12.6K bytes - Viewed (0) -
src/sort/gen_sort_variants.go
blockSize := 20 // must be > 0 a, b := 0, blockSize for b <= n { insertionSort{{.FuncSuffix}}(data, a, b {{.ExtraArg}}) a = b b += blockSize } insertionSort{{.FuncSuffix}}(data, a, n {{.ExtraArg}}) for blockSize < n { a, b = 0, 2*blockSize for b <= n { symMerge{{.FuncSuffix}}(data, a, a+blockSize, b {{.ExtraArg}}) a = b b += 2 * blockSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 19.6K bytes - Viewed (0) -
cmd/xl-storage-format-v1.go
DataBlocks int `json:"data"` // ParityBlocks is the number of parity blocks for erasure-coding ParityBlocks int `json:"parity"` // BlockSize is the size of one erasure-coded block BlockSize int64 `json:"blockSize"` // Index is the index of the current disk Index int `json:"index"` // Distribution is the distribution of the data and parity blocks Distribution []int `json:"distribution"`
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 8.2K bytes - Viewed (0) -
src/crypto/sha256/sha256.go
crypto.RegisterHash(crypto.SHA256, New) } // The size of a SHA256 checksum in bytes. const Size = 32 // The size of a SHA224 checksum in bytes. const Size224 = 28 // The blocksize of SHA256 and SHA224 in bytes. const BlockSize = 64 const ( chunk = 64 init0 = 0x6A09E667 init1 = 0xBB67AE85 init2 = 0x3C6EF372 init3 = 0xA54FF53A init4 = 0x510E527F init5 = 0x9B05688C
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:50:58 UTC 2024 - 5.7K bytes - Viewed (0) -
src/runtime/gc_test.go
ptrs[i] = new(obj) } writeBarrierBenchmark(b, func() { const blockSize = 1024 var pos int for i := 0; i < b.N; i += blockSize { // Rotate block. block := ptrs[pos : pos+blockSize] first := block[0] copy(block, block[1:]) block[blockSize-1] = first pos += blockSize if pos+blockSize > len(ptrs) { pos = 0 } runtime.Gosched() } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
cmd/erasure_test.go
type erasureTestSetup struct { dataBlocks int parityBlocks int blockSize int64 diskPaths []string disks []StorageAPI } // Returns an initialized setup for erasure tests. func newErasureTestSetup(tb testing.TB, dataBlocks int, parityBlocks int, blockSize int64) (*erasureTestSetup, error) { diskPaths := make([]string, dataBlocks+parityBlocks)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 25 19:37:26 UTC 2022 - 4.8K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (!arm64 && !s390x && !ppc64le) || !gc || purego package chacha20 const bufSize = blockSize func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { s.xorKeyStreamBlocksGeneric(dst, src)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 361 bytes - Viewed (0)