Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 157 for blockSize (0.13 sec)

  1. src/os/dir_unix.go

    	bufp int     // location of next record in buf.
    }
    
    const (
    	// More than 5760 to work around https://golang.org/issue/24015.
    	blockSize = 8192
    )
    
    var dirBufPool = sync.Pool{
    	New: func() any {
    		// The buffer must be at least a block long.
    		buf := make([]byte, blockSize)
    		return &buf
    	},
    }
    
    func (d *dirInfo) close() {
    	if d.buf != nil {
    		dirBufPool.Put(d.buf)
    		d.buf = nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/KotlinStdlibFileInterceptors.java

        @StaticMethod(ofClass = FilesKt.class)
        public static void intercept_forEachBlock(
            File self,
            int blockSize,
            Function2<?, ?, ?> action,
            @CallerClassName String consumer
        ) {
            Instrumented.fileOpened(self, consumer);
            FilesKt.forEachBlock(self, blockSize, Cast.uncheckedNonnullCast(action));
        }
    
        @InterceptCalls
        @StaticMethod(ofClass = FilesKt.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 12:34:20 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. src/crypto/sha512/sha512.go

    	// Size256 is the size, in bytes, of a SHA-512/256 checksum.
    	Size256 = 32
    
    	// Size384 is the size, in bytes, of a SHA-384 checksum.
    	Size384 = 48
    
    	// BlockSize is the block size, in bytes, of the SHA-512/224,
    	// SHA-512/256, SHA-384 and SHA-512 hash functions.
    	BlockSize = 128
    )
    
    const (
    	chunk     = 128
    	init0     = 0x6a09e667f3bcc908
    	init1     = 0xbb67ae8584caa73b
    	init2     = 0x3c6ef372fe94f82b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/handler-api.go

    		// max requests per node is calculated as
    		// total_ram / ram_per_request
    		blockSize := xioutil.LargeBlock + xioutil.SmallBlock
    		if legacy {
    			// ram_per_request is (1MiB+32KiB) * driveCount \
    			//    + 2 * 10MiB (default erasure block size v1) + 2 * 1MiB (default erasure block size v2)
    			apiRequestsMaxPerNode = int(maxMem / uint64(maxSetDrives*blockSize+int(blockSizeV1*2+blockSizeV2*2)))
    		} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1_gen.go

    		case "ParityBlocks":
    			z.ParityBlocks, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "ParityBlocks")
    				return
    			}
    		case "BlockSize":
    			z.BlockSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "BlockSize")
    				return
    			}
    		case "Index":
    			z.Index, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Index")
    				return
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. src/image/jpeg/reader.go

    		case 0:
    			if n < blockSize {
    				break loop
    			}
    			n -= blockSize
    			if err := d.readFull(d.tmp[:blockSize]); err != nil {
    				return err
    			}
    			for i := range d.quant[tq] {
    				d.quant[tq][i] = int32(d.tmp[i])
    			}
    		case 1:
    			if n < 2*blockSize {
    				break loop
    			}
    			n -= 2 * blockSize
    			if err := d.readFull(d.tmp[:2*blockSize]); err != nil {
    				return err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  7. src/crypto/md5/gen.go

    import (
    	"internal/byteorder"
    	"math/bits"
    )
    
    func blockGeneric(dig *digest, p []byte) {
    	// load state
    	a, b, c, d := dig.s[0], dig.s[1], dig.s[2], dig.s[3]
    
    	for i := 0; i <= len(p)-BlockSize; i += BlockSize {
    		// eliminate bounds checks on p
    		q := p[i:]
    		q = q[:BlockSize:BlockSize]
    
    		// save current state
    		aa, bb, cc, dd := a, b, c, d
    
    		// load input block
    		{{range $i := seq 16 -}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. cmd/os_unix.go

    // refer https://github.com/golang/go/issues/24015
    const blockSize = 8 << 10 // 8192
    
    // By default at least 128 entries in single getdents call (1MiB buffer)
    var (
    	direntPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, blockSize*128)
    			return &buf
    		},
    	}
    
    	direntNamePool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, blockSize)
    			return &buf
    		},
    	}
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/crypto/aes/aes_gcm.go

    // details.
    func (g *gcmAsm) Seal(dst, nonce, plaintext, data []byte) []byte {
    	if len(nonce) != g.nonceSize {
    		panic("crypto/cipher: incorrect nonce length given to GCM")
    	}
    	if uint64(len(plaintext)) > ((1<<32)-2)*BlockSize {
    		panic("crypto/cipher: message too large for GCM")
    	}
    
    	var counter, tagMask [gcmBlockSize]byte
    
    	if len(nonce) == gcmStandardNonceSize {
    		// Init counter to nonce||1
    		copy(counter[:], nonce)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/sha.go

    }
    
    func (h *sha1Hash) Reset() {
    	C._goboringcrypto_SHA1_Init(h.noescapeCtx())
    }
    
    func (h *sha1Hash) Size() int             { return 20 }
    func (h *sha1Hash) BlockSize() int        { return 64 }
    func (h *sha1Hash) Sum(dst []byte) []byte { return h.sum(dst) }
    
    func (h *sha1Hash) Write(p []byte) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top