/external/webrtc/webrtc/system_wrappers/source/ |
file_impl.cc | 77 ReadLockScoped read(*rw_lock_); 97 ReadLockScoped read(*rw_lock_); 191 int FileWrapperImpl::Read(void* buf, size_t length) {
|
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
BCHeaderField.h | 68 bool Read(const uint8_t* buf, size_t buf_len) {
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
filereadstream.h | 33 \param fp File pointer opened for read.
40 Read();
44 Ch Take() { Ch c = *current_; Read(); return c; }
59 void Read() {
82 size_t count_; //!< Number of characters read
|
/prebuilts/go/darwin-x86/src/archive/tar/ |
reader.go | 44 // The Header.Size determines how many bytes can be read for the next file. 144 // Sparse formats rely on being able to read from the logical data 161 // can only read the following logical data section. It will properly handle 238 // Read the sparse map according to the appropriate format. 337 // * Exactly 0 bytes are read and EOF is hit. 338 // * Exactly 1 block of zeros is read and EOF is hit. 339 // * At least 2 blocks of zeros are read. 343 return nil, nil, err // EOF is okay here; exactly 0 bytes read 347 return nil, nil, err // EOF is okay here; exactly 1 block of zeros read 350 return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read [all...] |
/prebuilts/go/darwin-x86/src/cmd/pack/ |
pack_test.go | 379 func (f *FakeFile) Read(p []byte) (int, error) {
|
/prebuilts/go/darwin-x86/src/compress/gzip/ |
gunzip.go | 60 // A Reader is an io.Reader that can be read to retrieve 69 // The Reader will return an ErrChecksum when Read 72 // returned by Read as tentative until they receive the io.EOF 87 // the decompressor may read more data than necessary from r. 129 // Read returns io.EOF. If the underlying reader implements io.ByteReader, 138 // It treats the bytes read as being encoded as ISO 8859-1 (Latin-1) and 140 // This method always updates z.digest with the data read. 245 // Read implements io.Reader, reading uncompressed bytes from its underlying Reader. 246 func (z *Reader) Read(p []byte) (n int, err error) { 251 n, z.err = z.decompressor.Read(p [all...] |
/prebuilts/go/darwin-x86/src/encoding/base32/ |
base32_test.go | 115 count, err := decoder.Read(dbuf) 117 t.Fatal("Read failed", err) 119 testEqual(t, "Read from %q = length %v, want %v", p.encoded, count, len(p.decoded)) 122 count, err = decoder.Read(dbuf) 124 testEqual(t, "Read from %q = %v, want %v", p.encoded, err, io.EOF) 137 // invocation of Read returning the next error in this slice, or io.EOF, 140 // the test passes to decoder.Read and will be a multiple of 8, unless 142 func (b *badReader) Read(p []byte) (int, error) { 162 // TestIssue20044 tests that decoder.Read behaves correctly when the caller 175 // Check a read error accompanied by input data consisting of newlines only is propagated [all...] |
/prebuilts/go/darwin-x86/src/encoding/gob/ |
timing_test.go | 192 // benchmarkBuf is a read buffer we can reset 198 func (b *benchmarkBuf) Read(p []byte) (n int, err error) {
|
/prebuilts/go/darwin-x86/src/encoding/hex/ |
hex.go | 169 func (d *decoder) Read(p []byte) (n int, err error) { 174 numRead, d.err = d.r.Read(d.arr[numCopy:])
|
/prebuilts/go/darwin-x86/src/internal/poll/ |
fd_plan9.go | 21 // Lock sysfd and serialize access to Read and Write methods. 31 rtimedout atomicBool // set true when read deadline has been reached 60 // Read implements io.Reader. 61 func (fd *FD) Read(fn func([]byte) (int, error), b []byte) (int, error) { 102 // SetDeadline sets the read and write deadlines associated with fd. 107 // SetReadDeadline sets the read deadline associated with fd. 208 // RawRead invokes the user-defined function f for a read operation.
|
fd_unix.go | 18 // Lock sysfd and serialize access to Read and Write methods. 37 // Whether a zero byte read indicates EOF. This is false for a 125 // Darwin and FreeBSD can't read or write 2GB+ files at a time, 132 // Read implements io.Reader. 133 func (fd *FD) Read(p []byte) (int, error) { 139 // If the caller wanted a zero byte read, return immediately 141 // Otherwise syscall.Read returns 0, nil which looks like 153 n, err := syscall.Read(fd.Sysfd, p) 438 // WaitWrite waits until data can be read from fd. 463 // RawRead invokes the user-defined function f for a read operation [all...] |
/prebuilts/go/darwin-x86/src/io/ |
multi_test.go | 34 n, gerr := mr.Read(buf[0:size]) 223 func (f readerFunc) Read(p []byte) (int, error) { 238 // Test that MultiReader properly flattens chained multiReaders when Read is called 243 var readDepth int // will contain the depth from which fakeReader.Read was called 255 r.Read(nil) // don't care about errors, just want to check the call-depth for Read 257 if readDepth != myDepth+2 { // 2 should be multiReader.Read and fakeReader.Read 264 // byte) and io.EOF at once in its Read call. 267 func (b byteAndEOFReader) Read(p []byte) (n int, err error) [all...] |
/prebuilts/go/darwin-x86/src/math/rand/ |
rand.go | 53 // generation during most recent Read call. 54 // It is saved so next Read call can start where the previous 254 // Read generates len(p) random bytes and writes them into p. It 256 // Read should not be called concurrently with any other Rand method. 257 func (r *Rand) Read(p []byte) (n int, err error) { 259 return lk.read(p, &r.readVal, &r.readPos) 261 return read(p, r.Int63, &r.readVal, &r.readPos) 264 func read(p []byte, int63 func() int64, readVal *int64, readPos *int8) (n int, err error) { func 345 // Read generates len(p) random bytes from the default Source and 347 // Read, unlike the Rand.Read method, is safe for concurrent use 405 func (r *lockedSource) read(p []byte, readVal *int64, readPos *int8) (n int, err error) { func [all...] |
/prebuilts/go/darwin-x86/src/mime/multipart/ |
multipart.go | 42 // during Read calls. 56 total int64 // total data bytes read already 58 readErr error // read error observed from mr.bufReader 110 // stickyErrorReader is an io.Reader which never calls Read on its 113 // Read calls after an error, yet this package does do multiple Reads 120 func (r *stickyErrorReader) Read(p []byte) (n int, _ error) { 124 n, r.err = r.r.Read(p) 154 // Read reads the body of a part, after its headers and before the 156 func (p *Part) Read(d []byte) (n int, err error) { 157 return p.r.Read(d [all...] |
/prebuilts/go/darwin-x86/src/net/ |
fd_unix.go | 201 func (fd *netFD) Read(p []byte) (n int, err error) { 202 n, err = fd.pfd.Read(p) 204 return n, wrapSyscallError("read", err)
|
pipe.go | 95 // Used by local Read to interact with remote Write. 100 // Used by local Write to interact with remote Read. 146 func (p *pipe) Read(b []byte) (int, error) { 147 n, err := p.read(b) 149 err = &OpError{Op: "read", Net: "pipe", Err: err} 154 func (p *pipe) read(b []byte) (n int, err error) { func
|
/prebuilts/go/darwin-x86/src/net/http/ |
client.go | 131 // read fields of the request in a separate goroutine. Callers 591 // read at least some of the body so if it's 810 // 1) on Read error or close, the stop func is called. 811 // 2) On Read failure, if reqDidTimeout is true, the error is wrapped and 819 func (b *cancelTimerBody) Read(p []byte) (n int, err error) { 820 n, err = b.rc.Read(p)
|
requestwrite_test.go | 842 // Ensure all the body is read; otherwise 864 func (r *delegateReader) Read(p []byte) (int, error) { 868 return r.r.Read(p)
|
/prebuilts/go/darwin-x86/src/net/http/fcgi/ |
fcgi_test.go | 36 t.Errorf("%d expected %d, read %d", i, test.size, size) 83 if err := rec.read(buf); err != nil { 98 t.Errorf("%s: read wrong content", test.desc) 127 func (c *writeOnlyConn) Read(p []byte) (int, error) { 322 // read by a handler. Ensures that variables not set will not
|
/prebuilts/go/darwin-x86/src/os/ |
timeout_test.go | 56 // Tests that read deadlines work, even if there's data ready 57 // to be read. 73 if _, err := w.Write([]byte("READ TIMEOUT TEST")); err != nil { 84 n, err := r.Read(b[:]) 95 t.Fatalf("#%d/%d: read %d; want 0", i, j, n) 127 _, err := r.Read(b[:]) 133 t.Fatalf("expected Read to not return, but it returned with %v", err) 245 n, err = r.Read(b) 248 err = fmt.Errorf("Read did not return (0, timeout): (%d, %v)", n, err) 252 err = fmt.Errorf("Read took %s; expected %s", dt, d [all...] |
/prebuilts/go/linux-x86/src/archive/tar/ |
reader.go | 44 // The Header.Size determines how many bytes can be read for the next file. 144 // Sparse formats rely on being able to read from the logical data 161 // can only read the following logical data section. It will properly handle 238 // Read the sparse map according to the appropriate format. 337 // * Exactly 0 bytes are read and EOF is hit. 338 // * Exactly 1 block of zeros is read and EOF is hit. 339 // * At least 2 blocks of zeros are read. 343 return nil, nil, err // EOF is okay here; exactly 0 bytes read 347 return nil, nil, err // EOF is okay here; exactly 1 block of zeros read 350 return nil, nil, io.EOF // normal EOF; exactly 2 block of zeros read [all...] |
/prebuilts/go/linux-x86/src/cmd/pack/ |
pack_test.go | 379 func (f *FakeFile) Read(p []byte) (int, error) {
|
/prebuilts/go/linux-x86/src/compress/gzip/ |
gunzip.go | 60 // A Reader is an io.Reader that can be read to retrieve 69 // The Reader will return an ErrChecksum when Read 72 // returned by Read as tentative until they receive the io.EOF 87 // the decompressor may read more data than necessary from r. 129 // Read returns io.EOF. If the underlying reader implements io.ByteReader, 138 // It treats the bytes read as being encoded as ISO 8859-1 (Latin-1) and 140 // This method always updates z.digest with the data read. 245 // Read implements io.Reader, reading uncompressed bytes from its underlying Reader. 246 func (z *Reader) Read(p []byte) (n int, err error) { 251 n, z.err = z.decompressor.Read(p [all...] |
/prebuilts/go/linux-x86/src/encoding/base32/ |
base32_test.go | 115 count, err := decoder.Read(dbuf) 117 t.Fatal("Read failed", err) 119 testEqual(t, "Read from %q = length %v, want %v", p.encoded, count, len(p.decoded)) 122 count, err = decoder.Read(dbuf) 124 testEqual(t, "Read from %q = %v, want %v", p.encoded, err, io.EOF) 137 // invocation of Read returning the next error in this slice, or io.EOF, 140 // the test passes to decoder.Read and will be a multiple of 8, unless 142 func (b *badReader) Read(p []byte) (int, error) { 162 // TestIssue20044 tests that decoder.Read behaves correctly when the caller 175 // Check a read error accompanied by input data consisting of newlines only is propagated [all...] |
/prebuilts/go/linux-x86/src/encoding/gob/ |
timing_test.go | 192 // benchmarkBuf is a read buffer we can reset 198 func (b *benchmarkBuf) Read(p []byte) (n int, err error) {
|