Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Rischard (1.22 sec)

  1. src/bufio/bufio.go

    			err = ErrBufferFull
    		}
    	}
    	return b.buf[b.r : b.r+n], err
    }
    
    // Discard skips the next n bytes, returning the number of bytes discarded.
    //
    // If Discard skips fewer than n bytes, it also returns an error.
    // If 0 <= n <= b.Buffered(), Discard is guaranteed to succeed without
    // reading from the underlying io.Reader.
    func (b *Reader) Discard(n int) (discarded int, err error) {
    	if n < 0 {
    		return 0, ErrNegativeCount
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticinit/sched.go

    		return false // outlined map init call; no mutations
    	}
    
    	if !s.seenMutation {
    		s.seenMutation = mayModifyPkgVar(rhs)
    	}
    
    	if allBlank(lhs) && !AnySideEffects(rhs) {
    		return true // discard
    	}
    
    	// Only worry about simple "l = r" assignments. The OAS2*
    	// assignments mostly necessitate dynamic execution anyway.
    	if len(lhs) > 1 {
    		return false
    	}
    
    	lno := ir.SetPos(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    	}, {
    		name: "PAX header too long",
    		h:    &Header{PAXRecords: map[string]string{"GOLANG.x": strings.Repeat("a", maxSpecialFileSize)}},
    	}} {
    		w := NewWriter(io.Discard)
    		if err := w.WriteHeader(test.h); err != ErrFieldTooLong {
    			t.Errorf("%v: w.WriteHeader() = %v, want ErrFieldTooLong", test.name, err)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    				}
    				cnt++
    				if s2 == "manual" {
    					if _, err = tr.writeTo(io.Discard); err != nil {
    						break
    					}
    				}
    			}
    			if err != v.err {
    				t.Errorf("test %d, NewReader(%s) with %s discard: got %v, want %v",
    					i, s1, s2, err, v.err)
    			}
    			if cnt != v.cnt {
    				t.Errorf("test %d, NewReader(%s) with %s discard: got %d headers, want %d headers",
    					i, s1, s2, cnt, v.cnt)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    	// one or more "header files" until it finds a "normal file".
    	format := FormatUSTAR | FormatPAX | FormatGNU
    	for {
    		// Discard the remainder of the file and any padding.
    		if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil {
    			return nil, err
    		}
    		if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil {
    			return nil, err
    		}
    		tr.pad = 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/html.go

    // phase is used for collapsing columns and should be unique across the table.
    func (w *HTMLWriter) WritePhase(phase, title string) {
    	if w == nil {
    		return // avoid generating HTML just to discard it
    	}
    	hash := hashFunc(w.Func)
    	w.pendingPhases = append(w.pendingPhases, phase)
    	w.pendingTitles = append(w.pendingTitles, title)
    	if !bytes.Equal(hash, w.prevHash) {
    		w.flushPhases()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  7. statement.go

    				writer.WriteByte('(')
    				stmt.AddVar(writer, v...)
    				writer.WriteByte(')')
    			} else {
    				writer.WriteString("(NULL)")
    			}
    		case *DB:
    			subdb := v.Session(&Session{Logger: logger.Discard, DryRun: true}).getInstance()
    			if v.Statement.SQL.Len() > 0 {
    				var (
    					vars = subdb.Statement.Vars
    					sql  = v.Statement.SQL.String()
    				)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top