Searched defs:bytes_read (Results 1 - 25 of 116) sorted by relevance

12345

/external/syslinux/com32/lib/sys/
H A Dfileread.c44 ssize_t bytes_read; local
46 bytes_read = pmapi_read_file(&fp->i.fd.handle, fp->i.buf,
48 if (!bytes_read) {
53 fp->i.nbytes = bytes_read;
/external/bsdiff/
H A Dextents_file_unittest.cc99 size_t bytes_read; local
100 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read));
126 size_t bytes_read = 0; local
127 EXPECT_TRUE(file.Read(buf, 100, &bytes_read));
128 EXPECT_EQ(15U, bytes_read);
148 size_t bytes_read = 0; local
149 EXPECT_TRUE(file.Read(buf, 2, &bytes_read));
150 EXPECT_EQ(2U, bytes_read);
151 EXPECT_TRUE(file.Read(buf, 8, &bytes_read));
152 EXPECT_EQ(8U, bytes_read);
168 size_t bytes_read = 0; local
182 size_t bytes_read = 0; local
191 size_t bytes_read; local
206 size_t bytes_read = 0; local
[all...]
H A Dmemory_file.cc15 bool MemoryFile::Read(void* buf, size_t count, size_t* bytes_read) { argument
19 *bytes_read = count;
H A Dsink_file.cc12 bool SinkFile::Read(void* buf, size_t count, size_t* bytes_read) { argument
H A Dbuffer_file.cc20 bool BufferFile::Read(void* buf, size_t count, size_t* bytes_read) { argument
H A Dextents_file.cc34 bool ExtentsFile::Read(void* buf, size_t count, size_t* bytes_read) { argument
35 return IOOperation(&FileInterface::Read, buf, count, bytes_read);
H A Dfile.cc38 bool File::Read(void* buf, size_t count, size_t* bytes_read) { argument
46 *bytes_read = static_cast<size_t>(rc);
H A Dtest_utils.cc73 size_t bytes_read = fread(buf, 1, sizeof(buf), fp); local
74 if (!bytes_read)
76 out->insert(out->end(), buf, buf + bytes_read);
/external/libmojo/mojo/common/
H A Ddata_pipe_file_utils.cc36 int bytes_read = local
38 if (bytes_read >= 0) {
39 EndWriteDataRaw(destination.get(), bytes_read);
40 if (bytes_read == 0) {
/external/libmojo/mojo/edk/test/
H A Dmultiprocess_test_helper_unittest.cc44 size_t bytes_read = 0; local
45 BlockingRead(handle, c, 1, &bytes_read);
46 return bytes_read == 1;
H A Dtest_utils_posix.cc41 size_t* bytes_read) {
55 *bytes_read = result;
62 size_t* bytes_read) {
69 *bytes_read = 0;
71 *bytes_read = result;
38 BlockingRead(const PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
59 NonBlockingRead(const PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
H A Dtest_utils_win.cc40 size_t* bytes_read) {
53 *bytes_read = bytes_read_dword;
60 size_t* bytes_read) {
73 *bytes_read = 0;
78 *bytes_read = bytes_read_dword;
37 BlockingRead(const PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
57 NonBlockingRead(const PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
/external/libvpx/libvpx/
H A Divfdec.c73 int ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, argument
107 *bytes_read = frame_size;
/external/ltp/testcases/kernel/fs/fs_di/
H A Dfrag.c48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; local
78 bytes_read = fread(buff, 1, 1024, fp_data);
79 if (bytes_read < 0) {
84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1);
85 if (bytes_read != bytes_written) {
90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2);
91 if (bytes_read != bytes_written) {
104 if (bytes_read < 1024)
/external/sfntly/cpp/src/test/
H A Dfile_io_test.cc41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
42 EXPECT_EQ(bytes_read, length);
102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
103 EXPECT_EQ(bytes_read, length);
H A Dbyte_array_test.cc39 int32_t bytes_read = ba->Get(index, buffer); local
40 std::copy(buffer->begin(), buffer->begin() + bytes_read,
42 index += bytes_read;
54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_size); local
55 index += bytes_read;
/external/syslinux/com32/elflink/ldlinux/
H A Dloadhigh.c48 uint32_t bytes_read; local
85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more);
87 if (bytes_read > chunk)
88 bytes_read = chunk;
90 buf += bytes_read;
91 bytes -= bytes_read;
/external/e2fsprogs/resize/
H A Dresource_track.c43 track->bytes_read = 0;
48 track->bytes_read = io_start->bytes_read;
105 unsigned long long bytes_read = 0; local
110 bytes_read = delta->bytes_read - track->bytes_read;
113 if (bytes_read == 0 && bytes_written == 0)
119 mbytes(bytes_read),
121 (double)mbytes(bytes_read
[all...]
/external/google-breakpad/src/common/tests/
H A Dfile_utils.cc64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); local
65 if (bytes_read < 0) {
70 if (bytes_read == 0)
77 bytes_read - bytes_written_per_read));
84 } while (bytes_written_per_read < bytes_read);
/external/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
/external/webrtc/webrtc/base/
H A Dbufferqueue.cc35 bool BufferQueue::ReadFront(void* buffer, size_t bytes, size_t* bytes_read) { argument
47 if (bytes_read) {
48 *bytes_read = bytes;
/external/boringssl/src/tool/
H A Dserver.cc67 size_t bytes_read; local
88 bytes_read = fread(data, 1, length, f);
90 bytes_read != (size_t)length ||
91 !SSL_CTX_set_ocsp_response(ctx, (uint8_t*)data, bytes_read)) {
/external/libmojo/base/debug/
H A Dproc_maps_linux.cc66 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize)); local
67 if (bytes_read < 0) {
74 proc_maps->resize(pos + bytes_read);
76 if (bytes_read == 0)
/external/libmojo/mojo/edk/embedder/
H A Dplatform_channel_pair_posix_unittest.cc190 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get()); local
191 EXPECT_EQ(j + 1, bytes_read);
192 EXPECT_EQ(std::string(j + 1, c), std::string(read_buf, bytes_read));
253 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get()); local
254 EXPECT_EQ(file_contents.size(), bytes_read);
255 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read));
/external/protobuf/conformance/
H A Dconformance_cpp.cc67 ssize_t bytes_read = read(fd, (char*)buf + ofs, len); local
69 if (bytes_read == 0) return false;
71 if (bytes_read < 0) {
75 len -= bytes_read;
76 ofs += bytes_read;

Completed in 494 milliseconds

12345