Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 239 for winter (0.12 sec)

  1. src/image/png/writer.go

    	if e.err != nil {
    		return 0, e.err
    	}
    	return len(b), nil
    }
    
    // Chooses the filter to use for encoding the current row, and applies it.
    // The return value is the index of the filter and also of the row in cr that has had it applied.
    func filter(cr *[nFilter][]byte, pr []byte, bpp int) int {
    	// We try all five filter types, and pick the one that minimizes the sum of absolute differences.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/go/types/pointer.go

    // Elem returns the element type for the given pointer p.
    func (p *Pointer) Elem() Type { return p.base }
    
    func (p *Pointer) Underlying() Type { return p }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 761 bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    // Writer provides sequential writing of a tar archive.
    // [Writer.WriteHeader] begins a new file with the provided [Header],
    // and then Writer can be treated as an io.Writer to supply that file's data.
    type Writer struct {
    	w    io.Writer
    	pad  int64      // Amount of padding to write after current file entry
    	curr fileWriter // Writer for current file entry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. src/mime/quotedprintable/writer.go

    import "io"
    
    const lineMaxLen = 76
    
    // A Writer is a quoted-printable writer that implements [io.WriteCloser].
    type Writer struct {
    	// Binary mode treats the writer's input as pure binary and processes end of
    	// line bytes as binary data.
    	Binary bool
    
    	w    io.Writer
    	i    int
    	line [78]byte
    	cr   bool
    }
    
    // NewWriter returns a new [Writer] that writes to w.
    func NewWriter(w io.Writer) *Writer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/internal/trace/raw/writer.go

    // NewWriter creates a new byte format writer.
    func NewWriter(w io.Writer, v version.Version) (*Writer, error) {
    	_, err := version.WriteHeader(w, v)
    	return &Writer{w: w, v: v, specs: v.Specs()}, err
    }
    
    // WriteEvent writes a single event to the trace wire format stream.
    func (w *Writer) WriteEvent(e Event) error {
    	// Check version.
    	if e.Version != w.v {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. pkg/kube/krt/filter.go

    	return func(h *dependency) {
    		// Translate to a key lookup
    		h.filter.keys = smallset.New(keyFunc(name.Name, name.Namespace))
    	}
    }
    
    func FilterKey(k string) FetchOption {
    	return func(h *dependency) {
    		h.filter.keys = smallset.New(k)
    	}
    }
    
    func FilterKeys(k ...string) FetchOption {
    	return func(h *dependency) {
    		h.filter.keys = smallset.New(k...)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. pkg/ptr/pointer.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ptr
    
    import (
    	"fmt"
    )
    
    // Of returns a pointer to the input. In most cases, callers should just do &t. However, in some cases
    // Go cannot take a pointer. For example, `ptr.Of(f())`.
    func Of[T any](t T) *T {
    	return &t
    }
    
    // OrEmpty returns *t if its non-nil, or else an empty T
    func OrEmpty[T any](t *T) T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 07 14:56:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/go/ast/filter.go

    	if len(lit.Elts) < n {
    		lit.Incomplete = true
    	}
    }
    
    func filterExprList(list []Expr, filter Filter, export bool) []Expr {
    	j := 0
    	for _, exp := range list {
    		switch x := exp.(type) {
    		case *CompositeLit:
    			filterCompositeLit(x, filter, export)
    		case *KeyValueExpr:
    			if x, ok := x.Key.(*Ident); ok && !filter(x.Name) {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/compress/lzw/writer.go

    // is a *[Writer].
    func NewWriter(w io.Writer, order Order, litWidth int) io.WriteCloser {
    	return newWriter(w, order, litWidth)
    }
    
    func newWriter(dst io.Writer, order Order, litWidth int) *Writer {
    	w := new(Writer)
    	w.init(dst, order, litWidth)
    	return w
    }
    
    func (w *Writer) init(dst io.Writer, order Order, litWidth int) {
    	switch order {
    	case LSB:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/runtime/iface.go

    	var fun0 unsafe.Pointer
    imethods:
    	for k := 0; k < ni; k++ {
    		i := &inter.Methods[k]
    		itype := toRType(&inter.Type).typeOff(i.Typ)
    		name := toRType(&inter.Type).nameOff(i.Name)
    		iname := name.Name()
    		ipkg := pkgPath(name)
    		if ipkg == "" {
    			ipkg = inter.PkgPath.Name()
    		}
    		for ; j < nt; j++ {
    			t := &xmhdr[j]
    			rtyp := toRType(typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top