HomeSort by relevance Sort by last modified time
    Searched defs:Write (Results 126 - 150 of 714) sorted by null

1 2 3 4 56 7 8 91011>>

  /prebuilts/go/darwin-x86/src/net/http/cgi/
matryoshka_test.go 68 func (r *customWriterRecorder) Write(p []byte) (n int, err error) {
69 return r.w.Write(p)
77 func (w *limitWriter) Write(p []byte) (n int, err error) {
82 n, err = w.w.Write(p)
86 err = errors.New("past write limit")
107 req, _ := http.NewRequest("GET", "http://example.com/test.cgi?write-forever=1", nil)
206 if req.FormValue("write-forever") == "1" {
  /prebuilts/go/darwin-x86/src/net/http/
filetransport.go 114 func (pr *populateResponse) Write(p []byte) (n int, err error) {
122 return pr.pw.Write(p)
response.go 80 // ReadResponse nor Response.Write ever closes a connection.
223 // Write writes r to w in the HTTP/1.x server response format,
239 func (r *Response) Write(w io.Writer) error {
321 // Write body and trailer
  /prebuilts/go/darwin-x86/src/net/http/httptest/
recorder.go 21 // Note that if a Handler never calls WriteHeader or Write,
33 // Body is the buffer to which the Handler's Write calls are sent.
41 snapHeader http.Header // snapshot of HeaderMap at first Write
97 // Write always succeeds and writes to rw.Body, if not nil.
98 func (rw *ResponseRecorder) Write(buf []byte) (int, error) {
101 rw.Body.Write(buf)
155 // first write call, or at the time of this call, if the handler never
156 // did a write.
  /prebuilts/go/darwin-x86/src/net/http/httputil/
persist.go 38 mu sync.Mutex // read-write protects the following fields
41 re, we error // read/write errors
64 // should not call Hijack while Read or Write is in progress.
109 if sc.we != nil { // no point receiving if write-side broken or closed
172 // Write writes resp in response to req. To close the connection gracefully, set the
173 // Response.Close field to true. Write should be considered operational until
175 func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error {
213 err := resp.Write(c)
231 mu sync.Mutex // read-write protects the following fields
234 re, we error // read/write error
    [all...]
  /prebuilts/go/darwin-x86/src/net/textproto/
writer.go 32 w.W.Write(crnl)
36 // DotWriter returns a writer that can be used to write a dot-encoding to w.
66 func (d *dotWriter) Write(b []byte) (n int, err error) {
115 bw.Write(dotcrnl)
  /prebuilts/go/darwin-x86/src/strings/
builder.go 12 // A Builder is used to efficiently build a string using Write methods.
80 // Write appends the contents of p to b's buffer.
81 // Write always returns len(p), nil.
82 func (b *Builder) Write(p []byte) (int, error) {
  /prebuilts/go/darwin-x86/src/testing/
sub_test.go 571 func (fw funcWriter) Write(b []byte) (int, error) { return fw(b) }
577 // Check if some other goroutine is concurrently calling Write.
  /prebuilts/go/darwin-x86/src/text/tabwriter/
tabwriter_test.go 21 func (b *buffer) Write(buf []byte) (written int, err error) {
30 panic("buffer.Write: buffer too small")
37 func write(t *testing.T, testname string, w *Writer, src string) { func
40 t.Errorf("--- test: %s\n--- src:\n%q\n--- write error: %v\n", testname, src, err)
66 // write all at once
69 write(t, title, &w, src)
72 // write byte-by-byte
76 write(t, title, &w, src[i:i+1])
80 // write using Fibonacci slice sizes
84 write(t, title, &w, src[i:i+d]
    [all...]
  /prebuilts/go/linux-x86/src/cmd/compile/internal/gc/
timings.go 66 // Write prints the phase times to w.
68 func (t *Timings) Write(w io.Writer, prefix string) {
136 // write phase
153 lines.write(w)
188 func (lines lines) write(w io.Writer) { func
  /prebuilts/go/linux-x86/src/cmd/go/internal/cache/
hash.go 45 h.Write([]byte("subkey:"))
46 h.Write(parent[:])
47 h.Write([]byte(desc))
62 // The caller is expected to Write data to it and then call Sum.
68 h.Write(hashSalt)
75 // Write writes data to the running hash.
76 func (h *Hash) Write(b []byte) (int, error) {
81 h.buf.Write(b)
83 return h.h.Write(b)
  /prebuilts/go/linux-x86/src/cmd/go/internal/help/
help.go 108 func (c *commentWriter) Write(p []byte) (int, error) {
121 n0, err := c.W.Write(p[i : i+1])
133 // An errWriter wraps a writer, recording whether a write error occurred.
139 func (w *errWriter) Write(b []byte) (int, error) {
140 n, err := w.w.Write(b)
155 // I/O error writing. Ignore write on closed pipe.
  /prebuilts/go/linux-x86/src/cmd/go/internal/list/
list.go 167 out.Write(b)
168 out.Write(nl)
192 out.Write(nl)
228 // TrackingWriter tracks the last byte written on every write so
243 func (t *TrackingWriter) Write(p []byte) (n int, err error) {
244 n, err = t.w.Write(p)
  /prebuilts/go/linux-x86/src/cmd/link/internal/ld/
outbuf.go 46 // Write writes the contents of v to the buffer.
48 // As Write is backed by a bufio.Writer, callers do not have
51 func (out *OutBuf) Write(v []byte) (int, error) {
52 n, err := out.w.Write(v)
65 out.Write(out.encbuf[:2])
70 out.Write(out.encbuf[:4])
75 out.Write(out.encbuf[:4])
80 out.Write(out.encbuf[:8])
85 out.Write(out.encbuf[:8])
108 out.Write(pad
    [all...]
  /prebuilts/go/linux-x86/src/compress/gzip/
gzip.go 29 Header // written at first call to Write, Flush, or Close
48 // the first call to Write, Flush, or Close.
95 return errors.New("gzip.Write: Extra data is too large")
98 _, err := z.w.Write(z.buf[:2])
102 _, err = z.w.Write(b)
113 return errors.New("gzip.Write: non-Latin-1 header string")
124 _, err = z.w.Write(b)
133 _, err = z.w.Write(z.buf[:1])
137 // Write writes a compressed form of p to the underlying io.Writer. The
139 func (z *Writer) Write(p []byte) (int, error)
    [all...]
  /prebuilts/go/linux-x86/src/compress/lzw/
writer.go 25 func (e *errWriteCloser) Write([]byte) (int, error) {
51 // order, write, bits, nBits and width are the state for
54 write func(*encoder, uint32) error
63 // savedCode is the accumulated code at the end of the most recent Write
67 // will make any future Write calls return errClosed
119 if err := e.write(e, clear); err != nil {
133 // Write writes a compressed representation of p to e's underlying writer.
134 func (e *encoder) Write(p []byte) (n int, err error) {
170 // Otherwise, write the current code, and literal becomes the start of
172 if e.err = e.write(e, code); e.err != nil
    [all...]
  /prebuilts/go/linux-x86/src/compress/zlib/
writer.go 118 if _, err = z.w.Write(z.scratch[0:2]); err != nil {
128 if _, err = z.w.Write(z.scratch[0:4]); err != nil {
144 // Write writes a compressed form of p to the underlying io.Writer. The
147 func (z *Writer) Write(p []byte) (n int, err error) {
157 n, err = z.compressor.Write(p)
162 z.digest.Write(p)
197 _, z.err = z.w.Write(z.scratch[0:4])
  /prebuilts/go/linux-x86/src/crypto/tls/
handshake_test.go 117 func (r *recordingConn) Write(b []byte) (n int, err error) {
118 if n, err = r.Conn.Write(b); n == 0 {
153 n, err = dumper.Write(flow)
  /prebuilts/go/linux-x86/src/encoding/ascii85/
ascii85.go 103 func (e *encoder) Write(p []byte) (n int, err error) {
121 if _, e.err = e.w.Write(e.out[0:nout]); e.err != nil {
136 if _, e.err = e.w.Write(e.out[0:nout]); e.err != nil {
154 // It is an error to call Write after calling Close.
160 _, e.err = e.w.Write(e.out[0:nout])
  /prebuilts/go/linux-x86/src/go/ast/
print.go 83 last byte // the last byte processed by Write
89 func (p *printer) Write(data []byte) (n int, err error) {
94 m, err = p.output.Write(data[n : i+1])
106 _, err = p.output.Write(indent)
115 m, err = p.output.Write(data[n:])
  /prebuilts/go/linux-x86/src/index/suffixarray/
suffixarray.go 39 // writeInt writes an int x to w using buf to buffer the write.
42 _, err := w.Write(buf[0:binary.MaxVarintLen64])
54 // It uses buf to buffer the write.
65 // write buffer
66 _, err = w.Write(buf[0:p])
136 // Write writes the index x to w.
137 func (x *Index) Write(w io.Writer) error {
141 // write length
146 // write data
147 if _, err := w.Write(x.data); err != nil
    [all...]
  /prebuilts/go/linux-x86/src/internal/race/
norace.go 33 func Write(addr unsafe.Pointer) {
race.go 40 func Write(addr unsafe.Pointer) {
  /prebuilts/go/linux-x86/src/io/ioutil/
ioutil.go 84 n, err := f.Write(data)
128 func (devNull) Write(p []byte) (int, error) {
159 // Discard is an io.Writer on which all Write calls succeed
  /prebuilts/go/linux-x86/src/mime/quotedprintable/
writer.go 28 // Write encodes p using quoted-printable encoding and writes it to the
31 func (w *Writer) Write(p []byte) (n int, err error) {
42 if err := w.write(p[n:i]); err != nil {
58 if err := w.write(p[n:]); err != nil {
75 // write limits text encoded in quoted-printable to 76 characters per line.
76 func (w *Writer) write(p []byte) error { func
162 if _, err := w.w.Write(w.line[:w.i]); err != nil {

Completed in 299 milliseconds

1 2 3 4 56 7 8 91011>>