Home
last modified time | relevance | path

Searched refs:buff_size (Results 1 – 12 of 12) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc225 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
227 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile()
235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
237 uptr res = internal_write(fd, buff, buff_size); in WriteToFile()
250 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
256 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
257 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
Dsanitizer_common.cc123 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
128 *buff_size = 0; in ReadFileToBuffer()
134 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
136 *buff_size = size; in ReadFileToBuffer()
143 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
Dsanitizer_win.cc253 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
568 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
576 bool success = ::ReadFile(fd, buff, buff_size, &num_read_long, nullptr); in ReadFromFile()
589 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
614 if (!WriteFile(fd, buff, buff_size, &bytes_written_32, 0)) { in WriteToFile()
Dsanitizer_common.h233 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
255 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size,
261 void *MapFileToMemory(const char *file_name, uptr *buff_size);
Dsanitizer_linux.cc444 uptr buff_size; in ReadNullSepFileToArray() local
447 if (!ReadFileToBuffer(path, &buff, &buff_size, &buff_len, 1024 * 1024)) { in ReadNullSepFileToArray()
/external/libcxx/include/support/ibm/
Dxlocale.h250 const size_t buff_size = 256; in vasprintf() local
252 if ((*strp = (char *)malloc(buff_size)) == NULL) in vasprintf()
256 if ((str_size = vsnprintf(*strp, buff_size, fmt, ap)) >= buff_size) in vasprintf()
/external/syslinux/gpxe/src/drivers/net/phantom/
Dnxhal_nic_interface.h386 U64 buff_size; /* Packet buffer size */ member
Dphantom.c635 buf->hostrq.rds.buff_size = cpu_to_le64 ( PHN_RX_BUFSIZE ); in phantom_create_rx_ctx()
/external/aac/libSBRenc/src/
Dtran_det.cpp805 int buff_size; in FDKsbrEnc_InitSbrFastTransientDetector() local
812 buff_size = h_sbrFastTransientDetector->nTimeSlots + h_sbrFastTransientDetector->lookahead; in FDKsbrEnc_InitSbrFastTransientDetector()
814 for(i=0; i< buff_size; i++) { in FDKsbrEnc_InitSbrFastTransientDetector()
/external/fio/tools/hist/
Dfiologparser_hist.py296 gen = histogram_generator(ctx, fps, ctx.buff_size)
/external/libavc/test/encoder/
Dmain.c1521 WORD32 i, is_last = 0, buff_size = 0, num_bytes = 0; in synchronous_encode() local
1760 buff_size = ps_app_ctxt->as_output_buf[i].u4_buf_size; in synchronous_encode()
1767 ps_video_encode_ip->s_out_buf.u4_bufsize = buff_size; in synchronous_encode()
1853 buff_size = ps_video_encode_op->s_out_buf.u4_bufsize; in synchronous_encode()
/external/icu/icu4c/source/test/cintltst/
Dnucnvtst.c5386 int32_t rules_length, target_cap, bytes_needed, buff_size; in TestJitterbug981() local
5411 buff_size = rules_length * ucnv_getMaxCharSize(utf8cnv); in TestJitterbug981()
5412 buff = malloc(buff_size); in TestJitterbug981()
5418 if(target_cap >= buff_size) { in TestJitterbug981()
5419 log_err("wanted %d bytes, only %d available\n", target_cap, buff_size); in TestJitterbug981()