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

<<11121314151617181920>>

  /prebuilts/go/darwin-x86/src/image/gif/
writer.go 51 // w is the writer to write to. err is the first error encountered during
94 b.e.write(b.e.buf[:256])
101 func (b blockWriter) Write(data []byte) (int, error) {
111 // Write the block terminator (0x00), either by itself, or along with a
118 b.e.write(b.e.buf[:n+2])
130 func (e *encoder) write(p []byte) { func
134 _, e.err = e.w.Write(p)
156 e.write(e.buf[:4])
163 e.write(e.buf[:3])
170 e.write(e.globalColorTable[:e.globalCT]
    [all...]
  /prebuilts/go/darwin-x86/src/image/png/
writer.go 117 crc.Write(e.header[4:8])
118 crc.Write(b)
121 _, e.err = e.w.Write(e.header[:8])
125 _, e.err = e.w.Write(b)
129 _, e.err = e.w.Write(e.footer[:4])
189 // including an 8-byte header and 4-byte CRC checksum per Write call. Such calls
194 func (e *encoder) Write(b []byte) (int, error) {
474 // Write the compressed bytes.
475 if _, err := e.zw.Write(cr[f]); err != nil {
485 // Write the actual image data to one or more IDAT chunks
    [all...]
  /prebuilts/go/darwin-x86/src/internal/poll/
fd_plan9.go 21 // Lock sysfd and serialize access to Read and Write methods.
32 wtimedout atomicBool // set true when write deadline has been reached
84 // Write implements io.Writer.
85 func (fd *FD) Write(fn func([]byte) (int, error), b []byte) (int, error) {
102 // SetDeadline sets the read and write deadlines associated with fd.
112 // SetWriteDeadline sets the write deadline associated with fd.
213 // RawWrite invokes the user-defined function f for a write operation.
fd_unix.go 18 // Lock sysfd and serialize access to Read and Write methods.
125 // Darwin and FreeBSD can't read or write 2GB+ files at a time,
241 // Write implements io.Writer.
242 func (fd *FD) Write(p []byte) (int, error) {
256 n, err := syscall.Write(fd.Sysfd, p[nn:max])
443 // WriteOnce is for testing only. It makes a single write call.
449 return syscall.Write(fd.Sysfd, p)
482 // RawWrite invokes the user-defined function f for a write operation.
  /prebuilts/go/darwin-x86/src/io/
multi_test.go 103 func (c *writeStringChecker) Write(p []byte) (n int, err error) {
128 t.Errorf("short write of %d, not %d", written, len(sourceString))
148 func (f writerFunc) Write(p []byte) (int, error) {
171 mw.Write(nil) // don't care about errors, just want to check the call-depth for Write
173 if writeDepth != 4*(myDepth+2) { // 2 should be multiWriter.Write and writerFunc.Write
184 t.Errorf("MultiWriter called f2.Write")
188 n, err := w.Write(make([]byte, 100))
190 t.Errorf("Write = %d, %v, want 50, ErrShortWrite", n, err
    [all...]
  /prebuilts/go/darwin-x86/src/net/
fd_unix.go 108 // interrupts the dial (by altering the fd's write deadline, which
219 func (fd *netFD) Write(p []byte) (nn int, err error) {
220 nn, err = fd.pfd.Write(p)
222 return nn, wrapSyscallError("write", err)
pipe.go 93 wrMu sync.Mutex // Serialize Write operations
95 // Used by local Read to interact with remote Write.
100 // Used by local Write to interact with remote Read.
178 func (p *pipe) Write(b []byte) (int, error) {
179 n, err := p.write(b)
181 err = &OpError{Op: "write", Net: "pipe", Err: err}
186 func (p *pipe) write(b []byte) (n int, err error) { func
  /prebuilts/go/darwin-x86/src/net/http/
cookie_test.go 143 func (ho headerOnlyResponseWriter) Write([]byte) (int, error) {
header.go 57 // Write writes a header in wire format.
58 func (h Header) Write(w io.Writer) error {
103 return w.w.Write([]byte(s))
requestwrite_test.go 26 WantWrite string // Request.Write
29 WantError error // wanted error from Request.Write
538 err := tt.Req.Write(&braw)
714 // TestRequestWriteClosesBody tests that Request.Write closes its request.Body.
724 if err := req.Write(buf); err != nil {
728 t.Error("body not closed after write")
737 t.Errorf("write:\n got: %s\nwant: %s", buf.String(), expected)
755 func (f writerFunc) Write(p []byte) (int, error) { return f(p) }
757 // TestRequestWriteError tests the Write err != nil checks in (*Request).write
    [all...]
  /prebuilts/go/darwin-x86/src/net/http/fcgi/
child.go 95 func (r *response) Write(data []byte) (int, error) {
99 return r.w.Write(data)
121 r.header.Write(r.w)
234 req.pw.Write(content)
fcgi_test.go 104 if _, err := w.Write(test.content); err != nil {
122 func (c *writeOnlyConn) Write(p []byte) (int, error) {
128 return 0, errors.New("conn is write-only")
  /prebuilts/go/linux-x86/src/archive/tar/
writer.go 18 // Write.WriteHeader begins a new file with the provided Header,
22 pad int64 // Amount of padding to write after current file entry
57 if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
158 // Write PAX records to the output.
168 // Write each record to a buffer.
178 // Write the extended header file.
210 // Write the sparse map and setup the sparse writer if necessary.
213 if _, err := tw.curr.Write(spb); err != nil {
292 // Write the extended sparse map and setup the sparse writer if necessary.
295 if _, err := tw.w.Write(spb); err != nil
    [all...]
  /prebuilts/go/linux-x86/src/archive/zip/
writer.go 87 // write central directory
131 if _, err := w.cw.Write(buf[:]); err != nil {
137 if _, err := w.cw.Write(h.Extra); err != nil {
176 if _, err := w.cw.Write(buf[:]); err != nil {
187 // write end record
197 if _, err := w.cw.Write(buf[:]); err != nil {
264 fh.Flags |= 0x8 // we will write a data descriptor
375 if _, err := w.Write(buf[:]); err != nil {
381 _, err := w.Write(h.Extra)
413 func (w *fileWriter) Write(p []byte) (int, error)
    [all...]
  /prebuilts/go/linux-x86/src/crypto/md5/
md5.go 140 func (d *digest) Write(p []byte) (nn int, err error) {
176 d.Write(tmp[0 : 56-len%64])
178 d.Write(tmp[0 : 64+56-len%64])
186 d.Write(tmp[0:8])
207 d.Write(data)
  /prebuilts/go/linux-x86/src/crypto/sha1/
sha1.go 130 func (d *digest) Write(p []byte) (nn int, err error) {
166 d.Write(tmp[0 : 56-len%64])
168 d.Write(tmp[0 : 64+56-len%64])
174 d.Write(tmp[0:8])
220 // we might have to write the length here if all fit in one block
263 d.Write(data)
  /prebuilts/go/linux-x86/src/encoding/hex/
hex.go 121 dumper.Write(data)
140 func (e *encoder) Write(p []byte) (n int, err error) {
149 written, e.err = e.w.Write(e.out[:encoded])
223 func (h *dumper) Write(data []byte) (n int, err error) {
238 _, err = h.w.Write(h.buf[4:])
257 _, err = h.w.Write(h.buf[:l])
268 _, err = h.w.Write(h.rightChars[:])
279 // See the comments in Write() for the details of this format.
296 _, err = h.w.Write(h.buf[:l])
304 _, err = h.w.Write(h.rightChars[:nBytes+2]
    [all...]
  /prebuilts/go/linux-x86/src/hash/crc64/
crc64.go 185 func (d *digest) Write(p []byte) (n int, err error) {
  /prebuilts/go/linux-x86/src/image/gif/
writer.go 51 // w is the writer to write to. err is the first error encountered during
94 b.e.write(b.e.buf[:256])
101 func (b blockWriter) Write(data []byte) (int, error) {
111 // Write the block terminator (0x00), either by itself, or along with a
118 b.e.write(b.e.buf[:n+2])
130 func (e *encoder) write(p []byte) { func
134 _, e.err = e.w.Write(p)
156 e.write(e.buf[:4])
163 e.write(e.buf[:3])
170 e.write(e.globalColorTable[:e.globalCT]
    [all...]
  /prebuilts/go/linux-x86/src/image/png/
writer.go 117 crc.Write(e.header[4:8])
118 crc.Write(b)
121 _, e.err = e.w.Write(e.header[:8])
125 _, e.err = e.w.Write(b)
129 _, e.err = e.w.Write(e.footer[:4])
189 // including an 8-byte header and 4-byte CRC checksum per Write call. Such calls
194 func (e *encoder) Write(b []byte) (int, error) {
474 // Write the compressed bytes.
475 if _, err := e.zw.Write(cr[f]); err != nil {
485 // Write the actual image data to one or more IDAT chunks
    [all...]
  /prebuilts/go/linux-x86/src/internal/poll/
fd_plan9.go 21 // Lock sysfd and serialize access to Read and Write methods.
32 wtimedout atomicBool // set true when write deadline has been reached
84 // Write implements io.Writer.
85 func (fd *FD) Write(fn func([]byte) (int, error), b []byte) (int, error) {
102 // SetDeadline sets the read and write deadlines associated with fd.
112 // SetWriteDeadline sets the write deadline associated with fd.
213 // RawWrite invokes the user-defined function f for a write operation.
fd_unix.go 18 // Lock sysfd and serialize access to Read and Write methods.
125 // Darwin and FreeBSD can't read or write 2GB+ files at a time,
241 // Write implements io.Writer.
242 func (fd *FD) Write(p []byte) (int, error) {
256 n, err := syscall.Write(fd.Sysfd, p[nn:max])
443 // WriteOnce is for testing only. It makes a single write call.
449 return syscall.Write(fd.Sysfd, p)
482 // RawWrite invokes the user-defined function f for a write operation.
  /prebuilts/go/linux-x86/src/io/
multi_test.go 103 func (c *writeStringChecker) Write(p []byte) (n int, err error) {
128 t.Errorf("short write of %d, not %d", written, len(sourceString))
148 func (f writerFunc) Write(p []byte) (int, error) {
171 mw.Write(nil) // don't care about errors, just want to check the call-depth for Write
173 if writeDepth != 4*(myDepth+2) { // 2 should be multiWriter.Write and writerFunc.Write
184 t.Errorf("MultiWriter called f2.Write")
188 n, err := w.Write(make([]byte, 100))
190 t.Errorf("Write = %d, %v, want 50, ErrShortWrite", n, err
    [all...]
  /prebuilts/go/linux-x86/src/net/
fd_unix.go 108 // interrupts the dial (by altering the fd's write deadline, which
219 func (fd *netFD) Write(p []byte) (nn int, err error) {
220 nn, err = fd.pfd.Write(p)
222 return nn, wrapSyscallError("write", err)
  /prebuilts/go/linux-x86/src/net/http/
cookie_test.go 143 func (ho headerOnlyResponseWriter) Write([]byte) (int, error) {

Completed in 985 milliseconds

<<11121314151617181920>>