Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeChunk (0.45 sec)

  1. src/image/png/writer.go

    		e.tmp[3*i+0] = c1.R
    		e.tmp[3*i+1] = c1.G
    		e.tmp[3*i+2] = c1.B
    		if c1.A != 0xff {
    			last = i
    		}
    		e.tmp[3*256+i] = c1.A
    	}
    	e.writeChunk(e.tmp[:3*len(p)], "PLTE")
    	if last != -1 {
    		e.writeChunk(e.tmp[3*256:3*256+1+last], "tRNS")
    	}
    }
    
    // An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks,
    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/net/http/h2_bundle.go

    		rws.trailers = append(rws.trailers, k)
    	}
    }
    
    // writeChunk writes chunks from the bufio.Writer. But because
    // bufio.Writer may bypass its chunking, sometimes p may be
    // arbitrarily large.
    //
    // writeChunk is also responsible (on the first chunk) for sending the
    // HEADER response.
    func (rws *http2responseWriterState) writeChunk(p []byte) (n int, err error) {
    	if !rws.wroteHeader {
    		rws.writeHeader(200)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top