Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 157 for blockSize (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. cmd/metacache-stream.go

    	}
    	w := metacacheWriter{
    		mw:        nil,
    		blockSize: blockSize,
    	}
    	w.creator = func() error {
    		s2w := s2.NewWriter(out, s2.WriterBlockSize(blockSize), s2.WriterConcurrency(2))
    		w.mw = msgp.NewWriter(s2w)
    		w.creator = nil
    		if err := w.mw.WriteByte(metacacheStreamVersion); err != nil {
    			return err
    		}
    
    		w.closer = func() (err error) {
    			defer func() {
    				cerr := s2w.Close()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go

    }
    
    type CryptoReportHash struct {
    	Type       [64]uint8
    	Blocksize  uint32
    	Digestsize uint32
    }
    
    type CryptoReportCipher struct {
    	Type        [64]uint8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    }
    
    type CryptoReportBlkCipher struct {
    	Type        [64]uint8
    	Geniv       [64]uint8
    	Blocksize   uint32
    	Min_keysize uint32
    	Max_keysize uint32
    	Ivsize      uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top