Home
last modified time | relevance | path

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

12

/external/llvm-project/libcxx/test/libcxx/strings/basic.string/string.modifiers/
Dresize_default_initialized.pass.cpp28 unsigned buff_size = 125; in test_buffer_usage() local
29 unsigned used_size = buff_size - 16; in test_buffer_usage()
31 s.__resize_default_init(buff_size); in test_buffer_usage()
33 assert(s.size() == buff_size); in test_buffer_usage()
/external/libcxx/test/libcxx/strings/basic.string/string.modifiers/
Dresize_default_initialized.pass.cpp29 unsigned buff_size = 125; in test_buffer_usage() local
30 unsigned used_size = buff_size - 16; in test_buffer_usage()
32 s.__resize_default_init(buff_size); in test_buffer_usage()
34 assert(s.size() == buff_size); in test_buffer_usage()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_file.cpp104 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
107 *buff_size = 0; in ReadFileToBuffer()
116 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
118 *buff_size = size; in ReadFileToBuffer()
121 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
131 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
Dsanitizer_file.h64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
66 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
102 void *MapFileToMemory(const char *file_name, uptr *buff_size);
Dsanitizer_posix.cpp172 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
174 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile()
182 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
184 uptr res = internal_write(fd, buff, buff_size); in WriteToFile()
192 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
198 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
199 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
Dsanitizer_rtems.cpp212 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
214 uptr res = read(fd, buff, buff_size); in ReadFromFile()
222 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
224 uptr res = write(fd, buff, buff_size); in WriteToFile()
Dsanitizer_win.cpp396 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
726 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
734 bool success = ::ReadFile(fd, buff, buff_size, &num_read_long, nullptr); in ReadFromFile()
747 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
772 if (!WriteFile(fd, buff, buff_size, &bytes_written_32, 0)) { in WriteToFile()
Dsanitizer_fuchsia.cpp407 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
422 *buff_size = map_size; in ReadFileToBuffer()
Dsanitizer_linux.cpp561 uptr buff_size; in ReadNullSepFileToArray() local
564 if (!ReadFileToBuffer(path, &buff, &buff_size, &buff_len, 1024 * 1024)) { in ReadNullSepFileToArray()
/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/crosvm/devices/src/virtio/input/
Devent_source.rs67 let buff_size = read + self.read_idx; in receive_events() localVariable
69 for evt_slice in self.read_buffer[..buff_size].chunks_exact(E::SIZE) { in receive_events()
73 let remainder = buff_size % E::SIZE; in receive_events()
80 if buff_size != remainder { in receive_events()
81 let (des, src) = self.read_buffer.split_at_mut(buff_size - remainder); in receive_events()
87 let received_events = buff_size / E::SIZE; in receive_events()
/external/webrtc/modules/desktop_capture/win/
Ddxgi_output_duplicator.cc281 UINT buff_size = 0; in DoDetectUpdatedRegion() local
286 static_cast<UINT>(metadata_.capacity()), move_rects, &buff_size); in DoDetectUpdatedRegion()
292 move_rects_count = buff_size / sizeof(DXGI_OUTDUPL_MOVE_RECT); in DoDetectUpdatedRegion()
294 RECT* dirty_rects = reinterpret_cast<RECT*>(metadata_.data() + buff_size); in DoDetectUpdatedRegion()
297 static_cast<UINT>(metadata_.capacity()) - buff_size, dirty_rects, in DoDetectUpdatedRegion()
298 &buff_size); in DoDetectUpdatedRegion()
304 dirty_rects_count = buff_size / sizeof(RECT); in DoDetectUpdatedRegion()
/external/llvm-project/libcxx/include/support/ibm/
Dxlocale.h255 const size_t buff_size = 256; in vasprintf() local
257 if ((*strp = (char *)malloc(buff_size)) == NULL) in vasprintf()
261 if ((str_size = vsnprintf(*strp, buff_size, fmt, ap)) >= buff_size) in vasprintf()
/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/llvm-project/openmp/runtime/src/
Dz_Windows_NT_util.cpp1523 ULONG buff_size = 0; in __kmp_get_load_balance() local
1553 buff_size = glb_buff_size; in __kmp_get_load_balance()
1555 buff_size = 2 * buff_size; in __kmp_get_load_balance()
1558 buffer = KMP_INTERNAL_REALLOC(buffer, buff_size); in __kmp_get_load_balance()
1564 buff_size, &info_size); in __kmp_get_load_balance()
1568 glb_buff_size = buff_size; in __kmp_get_load_balance()
1579 CHECK(buff_size >= info_size); in __kmp_get_load_balance()
/external/tensorflow/tensorflow/core/lib/io/
Dbuffered_inputstream_test.cc457 void BM_BufferedReaderSmallReads(const int iters, const int buff_size, in BM_BufferedReaderSmallReads() argument
479 BufferedInputStream in(file.get(), buff_size); in BM_BufferedReaderSmallReads()
482 << "i: " << i << " itr: " << itr << " buff_size: " << buff_size in BM_BufferedReaderSmallReads()
/external/libchrome/base/numerics/
DREADME.md43 // Crash if signed_value is out of range for buff_size.
44 size_t buff_size = checked_cast<size_t>(signed_value);
279 size_t buff_size;
280 if (!CheckAdd(input, padding, kHeaderLength).AssignIfValid(&buff_size) ||
281 buff_size >= kMaxBuffer) {
/external/aac/libSBRenc/src/
Dtran_det.cpp795 int buff_size; in FDKsbrEnc_InitSbrFastTransientDetector() local
802 buff_size = h_sbrFastTransientDetector->nTimeSlots + in FDKsbrEnc_InitSbrFastTransientDetector()
805 for (i = 0; i < buff_size; i++) { in FDKsbrEnc_InitSbrFastTransientDetector()
/external/libavc/test/encoder/
Dmain.c1741 WORD32 i, is_last = 0, buff_size = 0, num_bytes = 0; in synchronous_encode() local
2036 buff_size = ps_app_ctxt->as_output_buf[i].u4_buf_size; in synchronous_encode()
2043 ps_video_encode_ip->s_out_buf.u4_bufsize = buff_size; in synchronous_encode()
2129 buff_size = ps_video_encode_op->s_out_buf.u4_bufsize; in synchronous_encode()
/external/icu/icu4c/source/test/cintltst/
Dnucnvtst.c5420 int32_t rules_length, target_cap, bytes_needed, buff_size; in TestJitterbug981() local
5445 buff_size = rules_length * ucnv_getMaxCharSize(utf8cnv); in TestJitterbug981()
5446 buff = malloc(buff_size); in TestJitterbug981()
5452 if(target_cap >= buff_size) { in TestJitterbug981()
5453 log_err("wanted %d bytes, only %d available\n", target_cap, buff_size); in TestJitterbug981()
/external/cpuinfo/test/dmesg/
Dgalaxy-s7-global.log4132 …L](offset:2572) = {id:0 ch:235 dir:UL} {sbdv_offset:3924 rb_len:16 } {buff_size:4096 payload_off…
4133 …L](offset:2592) = {id:0 ch:235 dir:DL} {sbdv_offset:4052 rb_len:32 } {buff_size:4096 payload_off…
4134 …L](offset:2612) = {id:1 ch:236 dir:UL} {sbdv_offset:4308 rb_len:16 } {buff_size:4096 payload_off…
4135 …L](offset:2632) = {id:1 ch:236 dir:DL} {sbdv_offset:4436 rb_len:32 } {buff_size:4096 payload_off…
4136 …L](offset:2652) = {id:2 ch:245 dir:UL} {sbdv_offset:4692 rb_len:16 } {buff_size:2048 payload_off…
4137 …L](offset:2672) = {id:2 ch:245 dir:DL} {sbdv_offset:4820 rb_len:512} {buff_size:2048 payload_off…
4138 …L](offset:2692) = {id:3 ch:1 dir:UL} {sbdv_offset:8916 rb_len:32 } {buff_size:2048 payload_off…
4139 …L](offset:2712) = {id:3 ch:1 dir:DL} {sbdv_offset:9172 rb_len:64 } {buff_size:2048 payload_off…
4140 …L](offset:2732) = {id:4 ch:25 dir:UL} {sbdv_offset:9684 rb_len:16 } {buff_size:2048 payload_off…
4141 …L](offset:2752) = {id:4 ch:25 dir:DL} {sbdv_offset:9812 rb_len:16 } {buff_size:2048 payload_off…
[all …]

12