- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 95 for rdat (0.05 sec)
-
src/io/pipe_test.go
} func TestPipe3(t *testing.T) { c := make(chan pipeReturn) r, w := Pipe() var wdat = make([]byte, 128) for i := 0; i < len(wdat); i++ { wdat[i] = byte(i) } go writer(w, wdat, c) var rdat = make([]byte, 1024) tot := 0 for n := 1; n <= 256; n *= 2 { nn, err := r.Read(rdat[tot : tot+n]) if err != nil && err != EOF { t.Fatalf("read: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9K bytes - Viewed (0) -
src/image/png/reader.go
rcol := uint16(cdat[6*x+0])<<8 | uint16(cdat[6*x+1]) gcol := uint16(cdat[6*x+2])<<8 | uint16(cdat[6*x+3]) bcol := uint16(cdat[6*x+4])<<8 | uint16(cdat[6*x+5]) rgba64.SetRGBA64(x, y, color.RGBA64{rcol, gcol, bcol, 0xffff}) } } case cbTCA16: for x := 0; x < width; x++ { rcol := uint16(cdat[8*x+0])<<8 | uint16(cdat[8*x+1]) gcol := uint16(cdat[8*x+2])<<8 | uint16(cdat[8*x+3])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0) -
src/image/png/paeth_test.go
return c } // slowFilterPaeth is a slow but simple implementation of func filterPaeth. func slowFilterPaeth(cdat, pdat []byte, bytesPerPixel int) { for i := 0; i < bytesPerPixel; i++ { cdat[i] += paeth(0, pdat[i], 0) } for i := bytesPerPixel; i < len(cdat); i++ { cdat[i] += paeth(cdat[i-bytesPerPixel], pdat[i], pdat[i-bytesPerPixel]) } } func TestPaeth(t *testing.T) { for a := 0; a < 256; a += 15 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.2K bytes - Viewed (0) -
test/chan/powser2.go
release := make(chan int) go dosplit(in, out, release) dat := <-in.dat out[0].dat <- dat if !both { <-wait } <-out[1].req out[1].dat <- dat release <- 0 } func split(in *dch, out *dch2) { release := make(chan int) go dosplit(in, out, release) release <- 0 } func put(dat item, out *dch) { <-out.req out.dat <- dat } func get(in *dch) *rat { seqno++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 22:22:20 UTC 2020 - 13.3K bytes - Viewed (0) -
src/image/png/paeth.go
return b } return c } // filterPaeth applies the Paeth filter to the cdat slice. // cdat is the current row's data, pdat is the previous row's data. func filterPaeth(cdat, pdat []byte, bytesPerPixel int) { var a, b, c, pa, pb, pc int for i := 0; i < bytesPerPixel; i++ { a, c = 0, 0 for j := i; j < len(cdat); j += bytesPerPixel { b = int(pdat[j]) pa = b - c pb = a - c pc = abs(pa + pb) pa = abs(pa)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 1.7K bytes - Viewed (0) -
test/chan/powser1.go
release := make(chan int) go dosplit(in, out, release) dat := <-in.dat out[0].dat <- dat if !both { <-wait } <-out[1].req out[1].dat <- dat release <- 0 } func split(in *dch, out *dch2) { release := make(chan int) go dosplit(in, out, release) release <- 0 } func put(dat rat, out *dch) { <-out.req out.dat <- dat } func get(in *dch) rat { seqno++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 22:22:20 UTC 2020 - 12.7K bytes - Viewed (0) -
src/image/png/writer.go
cdat2 := cr[2][1:] cdat3 := cr[3][1:] cdat4 := cr[4][1:] pdat := pr[1:] n := len(cdat0) // The up filter. sum := 0 for i := 0; i < n; i++ { cdat2[i] = cdat0[i] - pdat[i] sum += abs8(cdat2[i]) } best := sum filter := ftUp // The Paeth filter. sum = 0 for i := 0; i < bpp; i++ { cdat4[i] = cdat0[i] - pdat[i] sum += abs8(cdat4[i]) } for i := bpp; i < n; i++ {
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/regexp/testdata/basic.dat
Russ Cox <******@****.***> 1620744764 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 13 14:52:20 UTC 2021 - 8.4K bytes - Viewed (0) -
src/math/big/rat.go
import ( "fmt" "math" ) // A Rat represents a quotient a/b of arbitrary precision. // The zero value for a Rat represents the value 0. // // Operations always take pointer arguments (*Rat) rather // than Rat values, and each unique Rat value requires // its own unique *Rat pointer. To "copy" a Rat value, // an existing (or newly allocated) Rat must be set to // a new value using the [Rat.Set] method; shallow copies
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
src/regexp/testdata/repetition.dat
Russ Cox <******@****.***> 1410149331 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 6.6K bytes - Viewed (0)