Home
last modified time | relevance | path

Searched refs:read_bytes (Results 1 – 25 of 37) sorted by relevance

12

/external/freetype/builds/amiga/src/base/
Dftsystem.c298 unsigned long read_bytes; in ft_amiga_stream_io() local
322 read_bytes = count; in ft_amiga_stream_io()
330 read_bytes = Read( sysfile->file, sysfile->iobuf, IOBUF_SIZE ); in ft_amiga_stream_io()
331 if ( read_bytes == -1UL ) in ft_amiga_stream_io()
334 read_bytes = 0; in ft_amiga_stream_io()
338 sysfile->iobuf_end = offset + read_bytes; in ft_amiga_stream_io()
340 if ( read_bytes > count ) in ft_amiga_stream_io()
342 read_bytes = count; in ft_amiga_stream_io()
351 read_bytes = Read( sysfile->file, buffer, count ); in ft_amiga_stream_io()
352 if ( read_bytes == -1UL ) in ft_amiga_stream_io()
[all …]
/external/freetype/src/base/
Dftstream.c125 FT_ULong read_bytes; in FT_Stream_ReadAt() local
138 read_bytes = stream->read( stream, pos, buffer, count ); in FT_Stream_ReadAt()
141 read_bytes = stream->size - pos; in FT_Stream_ReadAt()
142 if ( read_bytes > count ) in FT_Stream_ReadAt()
143 read_bytes = count; in FT_Stream_ReadAt()
145 FT_MEM_COPY( buffer, stream->base + pos, read_bytes ); in FT_Stream_ReadAt()
148 stream->pos = pos + read_bytes; in FT_Stream_ReadAt()
150 if ( read_bytes < count ) in FT_Stream_ReadAt()
154 count, read_bytes )); in FT_Stream_ReadAt()
168 FT_ULong read_bytes = 0; in FT_Stream_TryRead() local
[all …]
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c202 unsigned long *read_bytes, long *usec, in read_testfile() argument
276 *read_bytes = get_bytes_read() - read_bytes_start; in read_testfile()
287 unsigned long read_bytes, read_bytes_ra; in test_readahead() local
294 read_testfile(0, testfile, testfile_size, &read_bytes, &usec, &cached); in test_readahead()
302 read_testfile(0, testfile, testfile_size, &read_bytes, &usec, &cached); in test_readahead()
322 tst_resm(TINFO, "read_testfile(0) read: %ld bytes", read_bytes); in test_readahead()
326 if (read_bytes_ra < read_bytes) in test_readahead()
/external/bsdiff/
Dbspatch.cc305 size_t read_bytes; in bspatch() local
307 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
311 if (!read_bytes) { in bspatch()
316 if (!patch_reader.ReadDiffStream(new_buf.data(), read_bytes)) { in bspatch()
321 for (size_t k = 0; k < read_bytes; k++) in bspatch()
323 if (!WriteAll(new_file, new_buf.data(), read_bytes)) { in bspatch()
327 chunk_size -= read_bytes; in bspatch()
/external/ltp/utils/ffsb-6.0-rc2/
Dffsb_op.c135 if (results->write_bytes || results->read_bytes) in print_results()
137 if (results->read_bytes) { in print_results()
138 ffsb_printsize(buf, results->read_bytes / runtime, 256); in print_results()
179 target->read_bytes += src->read_bytes; in add_results()
Dffsb_op.h83 uint64_t read_bytes; member
Dffsb_thread.c131 ft->results.read_bytes += bytes; in ft_add_readbytes()
/external/webrtc/webrtc/base/
Dbytebuffer_unittest.cc175 char read_bytes[3]; in TEST() local
176 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST()
178 EXPECT_EQ(write_bytes[i], read_bytes[i]); in TEST()
185 memset(read_bytes, 0, 3); in TEST()
186 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST()
188 EXPECT_EQ(write_bytes[i], read_bytes[i]); in TEST()
/external/tensorflow/tensorflow/core/lib/io/
Dzlib_inputstream.cc80 uLong read_bytes = z_stream_->next_in - z_stream_input_.get(); in ReadFromStream() local
83 if (read_bytes > 0) { in ReadFromStream()
137 size_t read_bytes = in NumUnreadBytes() local
139 return output_buffer_capacity_ - z_stream_->avail_out - read_bytes; in NumUnreadBytes()
Dzlib_outputbuffer.cc97 int32 read_bytes = z_stream_->next_in - z_stream_input_.get(); in AddToInputBuffer() local
99 int32 free_tail_bytes = input_buffer_capacity_ - (read_bytes + unread_bytes); in AddToInputBuffer()
/external/autotest/client/site_tests/security_Libcontainer/src/
Dlibcontainer_target_unittest.cc45 ssize_t read_bytes = read(read_fd_.get(), buffer, sizeof(buffer) - 1); in GetContents() local
46 CHECK(read_bytes >= 0); in GetContents()
47 buffer[read_bytes] = '\0'; in GetContents()
48 return std::string(buffer, read_bytes); in GetContents()
/external/linux-kselftest/tools/testing/selftests/vm/
Dmap_hugetlb.c48 static int read_bytes(char *addr) in read_bytes() function
75 ret = read_bytes(addr); in main()
Dhugepage-mmap.c52 static int read_bytes(char *addr) in read_bytes() function
86 ret = read_bytes(addr); in main()
/external/tensorflow/tensorflow/core/lib/io/snappy/
Dsnappy_outputbuffer.cc105 const int32 read_bytes = next_in_ - input_buffer_.get(); in AddToInputBuffer() local
108 input_buffer_capacity_ - (read_bytes + unread_bytes); in AddToInputBuffer()
Dsnappy_inputbuffer.cc152 size_t read_bytes = next_in_ - input_buffer_.get(); in ReadFromFile() local
155 if (read_bytes > 0) { in ReadFromFile()
/external/libunwind/src/
DLos-common.c164 map_local_is_readable (unw_word_t addr, size_t read_bytes) in map_local_is_readable() argument
166 return is_flag_set (addr, PROT_READ, read_bytes); in map_local_is_readable()
/external/libpcap/
Dsf-pcap-ng.c235 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof, in read_bytes() function
267 status = read_bytes(fp, &bhdr, sizeof(bhdr), 0, errbuf); in read_block()
327 if (read_bytes(fp, bdata, data_remaining, 1, errbuf) == -1) in read_block()
878 if (read_bytes(fp, in pcap_ng_check_header()
/external/python/cpython3/Modules/_io/
Dbytesio.c356 read_bytes(bytesio *self, Py_ssize_t size) in read_bytes() function
417 return read_bytes(self, size); in _io_BytesIO_read_impl()
476 return read_bytes(self, n); in _io_BytesIO_readline_impl()
642 return read_bytes(self, n); in bytesio_iternext()
/external/libmojo/mojo/public/c/system/tests/
Dcore_perftest.cc140 uint32_t read_bytes = self->num_bytes_; in MessagePipe_WriteAndRead() local
141 result = MojoReadMessage(self->h1_, self->buffer_, &read_bytes, nullptr, in MessagePipe_WriteAndRead()
/external/kernel-headers/original/uapi/linux/
Dtaskstats.h152 __u64 read_bytes; /* bytes of read I/O */ member
/external/pdfium/core/fxcodec/codec/
Dfx_codec_flate.cpp727 size_t read_bytes = in v_GetNextLine() local
730 read_bytes); in v_GetNextLine()
731 m_LeftOver += m_PredictPitch - read_bytes; in v_GetNextLine()
732 bytes_to_go -= read_bytes; in v_GetNextLine()
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.h163 extern int read_bytes(int, void *, int);
Daction.h321 extern int read_bytes(int, void *, int);
/external/ltp/m4/
Dltp-taskstats.m432 …CK_MEMBERS([struct taskstats.freepages_count, struct taskstats.nvcsw, struct taskstats.read_bytes],
/external/libxaac/test/
Dixheaacd_main_flush_csd.c879 WORD32 buff_pos, read_bytes = 330, input_buff_size; in ixheaacd_main_process() local
1284 WORD32 read_bytes_act = read_bytes; in ixheaacd_main_process()
1290 if (buff_pos + read_bytes > input_buff_size) in ixheaacd_main_process()
1524 WORD32 read_bytes_act = read_bytes; in ixheaacd_main_process()
1526 if (buff_pos + read_bytes > input_buff_size) in ixheaacd_main_process()

12