Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for Tabwidth (0.14 sec)

  1. internal/bpool/bpool.go

    func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) {
    	if capwidth > 0 && capwidth < 64 {
    		panic("buffer capped with smaller than 64 bytes is not supported")
    	}
    	if capwidth > 0 && width > capwidth {
    		panic("buffer length cannot be > capacity of the buffer")
    	}
    	return &BytePoolCap{
    		c:    make(chan []byte, maxSize),
    		w:    width,
    		wcap: capwidth,
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:44:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. internal/bpool/bpool_test.go

    	size := uint64(4)
    	width := 1024
    	capWidth := 2048
    
    	bufPool := NewBytePoolCap(size, width, capWidth)
    
    	// Check the width
    	if bufPool.Width() != width {
    		t.Fatalf("bytepool width invalid: got %v want %v", bufPool.Width(), width)
    	}
    
    	// Check with width cap
    	if bufPool.WidthCap() != capWidth {
    		t.Fatalf("bytepool capWidth invalid: got %v want %v", bufPool.WidthCap(), capWidth)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 19:13:27 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/compress/lzw/reader.go

    	LSB Order = iota
    	// MSB means Most Significant Bits first, as used in the TIFF and PDF
    	// file formats.
    	MSB
    )
    
    const (
    	maxWidth           = 12
    	decoderInvalidCode = 0xffff
    	flushBuffer        = 1 << maxWidth
    )
    
    // Reader is an io.Reader which can be used to read compressed data in the
    // LZW format.
    type Reader struct {
    	r        io.ByteReader
    	bits     uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:39 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultWorkInProgressFormatter.java

            // layout weirdness
            int maxWidth;
            int cols = consoleMetaData.getCols();
            if (cols > 0) {
                maxWidth = cols - 1;
            } else {
                // Assume 80 wide. This is to minimize wrapping on console where we don't know the width (eg mintty)
                // It's not intended to be a correct solution, simply a work around
                maxWidth = 79;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/internal/trace/traceviewer/histogram.go

    }
    
    // ToHTML renders the histogram as HTML.
    func (h *TimeHistogram) ToHTML(urlmaker func(min, max time.Duration) string) template.HTML {
    	if h == nil || h.Count == 0 {
    		return template.HTML("")
    	}
    
    	const barWidth = 400
    
    	maxCount := 0
    	for _, count := range h.Buckets {
    		if count > maxCount {
    			maxCount = count
    		}
    	}
    
    	w := new(strings.Builder)
    	fmt.Fprintf(w, `<table>`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/x86/galign.go

    	"fmt"
    	"internal/buildcfg"
    	"os"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &x86.Link386
    	arch.REGSP = x86.REGSP
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    	arch.MAXWIDTH = (1 << 32) - 1
    	switch v := buildcfg.GO386; v {
    	case "sse2":
    	case "softfloat":
    		arch.SoftFloat = true
    	case "387":
    		fmt.Fprintf(os.Stderr, "unsupported setting GO386=387. Consider using GO386=softfloat instead.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 887 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

            if (content == null) {
                return StringUtil.EMPTY; // empty
            }
    
            String subContent;
            if (content.length() < maxWidth * 2) {
                subContent = content;
            } else {
                subContent = content.substring(0, maxWidth * 2);
            }
    
            final int[] spaceChars = getSpaceChars();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. operator/pkg/util/progress/progress.go

    		// If we aren't a terminal, no need to spam extra lines
    		prefix = `{{ yellow "-" }} `
    	}
    	// reduce by 2 to allow for the "- " that will be added below
    	maxWidth -= 2
    	if maxWidth > 0 && len(msg) > maxWidth {
    		return prefix + msg[:maxWidth-3] + "..."
    	}
    	// cycle will alternate between "-" and " ". "-" is given multiple times to avoid quick flashing back and forth
    	return prefix + msg
    }
    
    // For testing only
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/arm64/galign.go

    package arm64
    
    import (
    	"cmd/compile/internal/ssa"
    	"cmd/compile/internal/ssagen"
    	"cmd/internal/obj/arm64"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &arm64.Linkarm64
    	arch.REGSP = arm64.REGSP
    	arch.MAXWIDTH = 1 << 50
    
    	arch.PadFrame = padframe
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    	arch.SSAGenValue = ssaGenValue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 666 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/mips64/galign.go

    	"internal/buildcfg"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &mips.Linkmips64
    	if buildcfg.GOARCH == "mips64le" {
    		arch.LinkArch = &mips.Linkmips64le
    	}
    	arch.REGSP = mips.REGSP
    	arch.MAXWIDTH = 1 << 50
    	arch.SoftFloat = buildcfg.GOMIPS64 == "softfloat"
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    	arch.SSAGenValue = ssaGenValue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 718 bytes
    - Viewed (0)
Back to top