Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for findZstd (0.26 sec)

  1. src/internal/zstd/fuzz_test.go

    // explore the space of decompressor behavior, since it can't see
    // what the compressor is doing. But it's better than nothing.
    func FuzzDecompressor(f *testing.F) {
    	zstd := findZstd(f)
    
    	for _, test := range tests {
    		f.Add([]byte(test.uncompressed))
    	}
    
    	// Add some larger data, as that has more interesting compression.
    	f.Add(bytes.Repeat([]byte("abcdefghijklmnop"), 256))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/internal/zstd/zstd_test.go

    		if bigDataErr == nil {
    			bigDataBytes = bytes.Repeat(bigDataBytes, 20)
    		}
    	})
    	if bigDataErr != nil {
    		t.Fatal(bigDataErr)
    	}
    	return bigDataBytes
    }
    
    func findZstd(t testing.TB) string {
    	zstd, err := exec.LookPath("zstd")
    	if err != nil {
    		t.Skip("skipping because zstd not found")
    	}
    	return zstd
    }
    
    var (
    	zstdBigOnce  sync.Once
    	zstdBigBytes []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:21 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. src/image/jpeg/scan.go

    				// For well-formed input, the RST[0-7] restart marker follows
    				// immediately. For corrupt input, call findRST to try to
    				// resynchronize.
    				if err := d.readFull(d.tmp[:2]); err != nil {
    					return err
    				} else if d.tmp[0] != 0xff || d.tmp[1] != expectedRST {
    					if err := d.findRST(expectedRST); err != nil {
    						return err
    					}
    				}
    				expectedRST++
    				if expectedRST == rst7Marker+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top