- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 333 for winter (0.1 sec)
-
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) -
src/image/jpeg/writer.go
theHuffmanLUT[i].init(s) } } // writer is a buffered writer. type writer interface { Flush() error io.Writer io.ByteWriter } // encoder encodes an image to the JPEG format. type encoder struct { // w is the writer to write to. err is the first error encountered during // writing. All attempted writes after the first error become no-ops. w writer err error // buf is a scratch buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 17.1K bytes - Viewed (0) -
src/net/textproto/writer.go
package textproto import ( "bufio" "fmt" "io" ) // A Writer implements convenience methods for writing // requests or responses to a text protocol network connection. type Writer struct { W *bufio.Writer dot *dotWriter } // NewWriter returns a new [Writer] writing to w. func NewWriter(w *bufio.Writer) *Writer { return &Writer{W: w} } var crnl = []byte{'\r', '\n'}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 2.5K bytes - Viewed (0) -
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) -
src/go/printer/printer.go
commentNewline bool // true if the comment group contains newlines } type printer struct { // Configuration (does not change after initialization) Config fset *token.FileSet // Current state output []byte // raw printer result indent int // current indentation
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)