Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 182 for blockSize (0.23 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. src/sort/zsortinterface.go

    }
    
    func stable(data Interface, n int) {
    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSort(data, a, b)
    		a = b
    		b += blockSize
    	}
    	insertionSort(data, a, n)
    
    	for blockSize < n {
    		a, b = 0, 2*blockSize
    		for b <= n {
    			symMerge(data, a, a+blockSize, b)
    			a = b
    			b += 2 * blockSize
    		}
    		if m := a + blockSize; m < n {
    			symMerge(data, a, m, n)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  4. 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)
  5. src/slices/zsortanyfunc.go

    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSortCmpFunc(data, a, b, cmp)
    		a = b
    		b += blockSize
    	}
    	insertionSortCmpFunc(data, a, n, cmp)
    
    	for blockSize < n {
    		a, b = 0, 2*blockSize
    		for b <= n {
    			symMergeCmpFunc(data, a, a+blockSize, b, cmp)
    			a = b
    			b += 2 * blockSize
    		}
    		if m := a + blockSize; m < n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top