Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 62 for blockSize (0.27 sec)

  1. src/hash/hash.go

    	Reset()
    
    	// Size returns the number of bytes Sum will return.
    	Size() int
    
    	// BlockSize returns the hash's underlying block size.
    	// The Write method must be able to accept any amount
    	// of data, but it may operate more efficiently if all writes
    	// are a multiple of the block size.
    	BlockSize() int
    }
    
    // Hash32 is the common interface implemented by all 32-bit hash functions.
    type Hash32 interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. pkg/util/tail/tail.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package tail
    
    import (
    	"io"
    	"os"
    )
    
    const (
    	// blockSize is the block size used in tail.
    	blockSize = 1024
    )
    
    // ReadAtMost reads at most max bytes from the end of the file identified by path or
    // returns an error. It returns true if the file was longer than max. It will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. internal/etag/reader.go

    func (u UUIDHash) Reset() {
    	return
    }
    
    // Size -  implement hash.Hash Size
    func (u UUIDHash) Size() int {
    	return len(u.uuid)
    }
    
    // BlockSize -  implement hash.Hash BlockSize
    func (u UUIDHash) BlockSize() int {
    	return md5.BlockSize
    }
    
    var _ hash.Hash = &UUIDHash{}
    
    // NewUUIDHash - new UUIDHash
    func NewUUIDHash(uuid []byte) *UUIDHash {
    	return &UUIDHash{uuid: uuid}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. internal/disk/directio_unsupported.go

    func DisableDirectIO(f *os.File) error {
    	return nil
    }
    
    // AlignedBlock simply returns an unaligned buffer
    // for systems that do not support DirectIO.
    func AlignedBlock(blockSize int) []byte {
    	return make([]byte, blockSize)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. 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)
  10. cmd/storage-datatypes_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
Back to top