Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shiftOffsets (0.17 sec)

  1. src/compress/flate/deflatefast.go

    	// Protect against e.cur wraparound.
    	if e.cur >= bufferReset {
    		e.shiftOffsets()
    	}
    }
    
    // shiftOffsets will shift down all match offset.
    // This is only called in rare situations to prevent integer overflow.
    //
    // See https://golang.org/issue/18636 and https://github.com/golang/go/issues/34121.
    func (e *deflateFast) shiftOffsets() {
    	if len(e.prev) == 0 {
    		// We have no history; just clear the table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 19 18:48:17 UTC 2020
    - 9.4K bytes
    - Viewed (0)
  2. src/compress/flate/deflate_test.go

    				if !bytes.Equal(dst, src) {
    					report("", fmt.Errorf("bytes differ after round-tripping"))
    					continue
    				}
    			}
    		}
    	}
    }
    
    func TestBestSpeedShiftOffsets(t *testing.T) {
    	// Test if shiftoffsets properly preserves matches and resets out-of-range matches
    	// seen in https://github.com/golang/go/issues/4142
    	enc := newDeflateFast()
    
    	// testData may not generate internal matches.
    	testData := make([]byte, 32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/popper.min.js.map

    acement) !== -1;\n    const side = isVertical ? 'left' : 'top';\n    const measurement = isVertical ? 'width' : 'height';\n\n    const shiftOffsets = {\n      start: { [side]: reference[side] },\n      end: {\n        [side]: reference[side] + reference[measurement] - popper[measurement],\n      },\n    };\n\n    data.offsets.popper = { ...popper, ...shiftOffsets[shiftvariation] };\n  }\n\n  return data;\n}\n","import getOffsetParent from '../utils/getOffsetParent';\nimport getBoundaries from '....
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 07 10:28:50 UTC 2020
    - 121K bytes
    - Viewed (0)
Back to top