Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for sets (0.15 sec)

  1. src/bufio/bufio_test.go

    	b.WriteString("z")
    	if err := b.Flush(); err != nil {
    		t.Error("WriteString", err)
    	}
    	s := "01234567890abcdefghijklmnopqrstuvwxyz"
    	if buf.String() != s {
    		t.Errorf("WriteString wants %q gets %q", s, buf.String())
    	}
    }
    
    func TestWriteStringStringWriter(t *testing.T) {
    	const BufSize = 8
    	{
    		tw := &teststringwriter{}
    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("1234")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    		return err
    	}
    	_, err := io.WriteString(tw, data)
    	return err
    }
    
    // writeRawHeader writes the value of blk, regardless of its value.
    // It sets up the Writer such that it can accept a file of the given size.
    // If the flag is a special header-only flag, then the size is treated as zero.
    func (tw *Writer) writeRawHeader(blk *block, size int64, flag byte) error {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    			t.Go = c.goVoidPtr
    			t.C.Set("void*")
    			dq := dt.Type
    			for {
    				if d, ok := dq.(*dwarf.QualType); ok {
    					t.C.Set(d.Qual + " " + t.C.String())
    					dq = d.Type
    				} else {
    					break
    				}
    			}
    			break
    		}
    
    		// Placeholder initialization; completed in FinishType.
    		t.Go = &ast.StarExpr{}
    		t.C.Set("<incomplete>*")
    		key := dt.Type.String()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/lex.go

    	Text() string
    	// File reports the source file name of the token.
    	File() string
    	// Base reports the position base of the token.
    	Base() *src.PosBase
    	// SetBase sets the position base.
    	SetBase(*src.PosBase)
    	// Line reports the source line number of the token.
    	Line() int
    	// Col reports the source column number of the token.
    	Col() int
    	// Close does any teardown required.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    	p.get(')')
    	p.setPseudoRegister(a, reg, isStatic, prefix)
    }
    
    // setPseudoRegister sets the NAME field of addr for a pseudo-register reference such as (SB).
    func (p *Parser) setPseudoRegister(addr *obj.Addr, reg string, isStatic bool, prefix rune) {
    	if addr.Reg != 0 {
    		p.errorf("internal error: reg %s already set in pseudo", reg)
    	}
    	switch reg {
    	case "FP":
    		addr.Name = obj.NAME_PARAM
    	case "PC":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    				return nil, err
    			}
    
    			// Set the final guess at the format.
    			if format.has(FormatUSTAR) && format.has(FormatPAX) {
    				format.mayOnlyBe(FormatUSTAR)
    			}
    			hdr.Format = format
    			return hdr, nil // This is a file, so stop
    		}
    	}
    }
    
    // handleRegularFile sets up the current file reader and padding such that it
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/archive/tar/strconv.go

    	}
    
    	// If seconds is negative, then perform correction.
    	sign := ""
    	if secs < 0 {
    		sign = "-"             // Remember sign
    		secs = -(secs + 1)     // Add a second to secs
    		nsecs = -(nsecs - 1e9) // Take that second away from nsecs
    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  8. src/archive/zip/reader.go

    				ts := int64(attrBuf.uint64()) // ModTime since Windows epoch
    				secs := ts / ticksPerSecond
    				nsecs := (1e9 / ticksPerSecond) * (ts % ticksPerSecond)
    				epoch := time.Date(1601, time.January, 1, 0, 0, 0, 0, time.UTC)
    				modified = time.Unix(epoch.Unix()+secs, nsecs)
    			}
    		case unixExtraID, infoZipUnixExtraID:
    			if len(fieldBuf) < 8 {
    				continue parseExtras
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/ppc64.s

    	//      this is OK since r0 == $0, but the latter is preferred.
    	ADD $0, R6, R5             	// 7ca60214
    
            //TODO: the assembler rewrites these into ADDIS $19, R5, Rx and ADD $-10617, Rx, Rx, but the test only sees the first ADDIS
    	ADD $1234567, R5                // 3ca50013 or 0600001238a5d687
    	ADD $1234567, R5, R6            // 3cc50013 or 0600001238c5d687
    
    	ADDEX R3, R5, $3, R6            // 7cc32f54
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 15:53:25 GMT 2024
    - 49K bytes
    - Viewed (0)
  10. doc/asm.html

    The distinction rarely matters but
    to avoid ambiguity, division or right shift where the right operand's
    high bit is set is rejected.
    </p>
    
    <h3 id="symbols">Symbols</h3>
    
    <p>
    Some symbols, such as <code>R1</code> or <code>LR</code>,
    are predefined and refer to registers.
    The exact set depends on the architecture.
    </p>
    
    <p>
    There are four predeclared symbols that refer to pseudo-registers.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top