Home
last modified time | relevance | path

Searched refs:contents_size (Results 1 – 15 of 15) sorted by relevance

/external/grpc-grpc/src/core/lib/iomgr/
Dload_file.cc36 size_t contents_size = 0; in grpc_load_file() local
50 contents_size = static_cast<size_t>(ftell(file)); in grpc_load_file()
53 gpr_malloc(contents_size + (add_null_terminator ? 1 : 0))); in grpc_load_file()
54 bytes_read = fread(contents, 1, contents_size, file); in grpc_load_file()
55 if (bytes_read < contents_size) { in grpc_load_file()
61 contents[contents_size++] = 0; in grpc_load_file()
63 result = grpc_slice_new(contents, contents_size, gpr_free); in grpc_load_file()
/external/elfutils/libdwfl/
Delf-from-memory.c219 size_t contents_size = 0; in elf_from_remote_memory() local
242 if (segment_end > (GElf_Off) contents_size) in elf_from_remote_memory()
243 contents_size = segment_end; in elf_from_remote_memory()
287 if ((GElf_Off) contents_size > segments_end in elf_from_remote_memory()
288 && (GElf_Off) contents_size >= shdrs_end in elf_from_remote_memory()
291 contents_size = segments_end; in elf_from_remote_memory()
292 if ((GElf_Off) contents_size < shdrs_end) in elf_from_remote_memory()
293 contents_size = shdrs_end; in elf_from_remote_memory()
296 contents_size = segments_end; in elf_from_remote_memory()
301 buffer = calloc (1, contents_size); in elf_from_remote_memory()
[all …]
DChangeLog918 extend contents_size and use shdrs if only file bits are in
/external/u-boot/tools/binman/
Dbsection.py95 contents_size = 0
97 contents_size = max(contents_size, entry.pos + entry.size)
99 contents_size -= self._skip_at_start
103 size = self._pad_before + contents_size + self._pad_after
106 if self._size and contents_size > self._size:
108 (contents_size, contents_size, self._size, self._size))
Delf_test.py36 def __init__(self, contents_size): argument
37 self.contents_size = contents_size
38 self.data = 'a' * contents_size
Delf.py104 if offset < 0 or offset + sym.size > entry.contents_size:
107 sym.size, entry.contents_size))
Dentry.py58 self.contents_size = 0
174 needed = self.pad_before + self.contents_size + self.pad_after
Dftest.py455 self.assertEqual(len(U_BOOT_DATA), entry.contents_size)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_suppressions.cc67 uptr contents_size; in ParseFromFile() local
69 &contents_size)) { in ParseFromFile()
/external/u-boot/tools/binman/etype/
D_testing.py18 self.contents_size = len(self.data)
Du_boot_spl_bss_pad.py26 self.contents_size = bss_size
Dblob.py32 self.contents_size = len(self.data)
/external/python/cpython2/Modules/_ctypes/libffi/src/
Ddlmalloc.c4012 size_t contents_size; /* total size of elements */ in ialloc() local
4041 contents_size = n_elements * element_size; in ialloc()
4045 contents_size = 0; in ialloc()
4047 contents_size += request2size(sizes[i]); in ialloc()
4050 size = contents_size + array_size; in ialloc()
4078 array_chunk = chunk_plus_offset(p, contents_size); in ialloc()
4079 array_chunk_size = remainder_size - contents_size; in ialloc()
4082 remainder_size = contents_size; in ialloc()
/external/libffi/src/
Ddlmalloc.c4007 size_t contents_size; /* total size of elements */ in ialloc() local
4036 contents_size = n_elements * element_size; in ialloc()
4040 contents_size = 0; in ialloc()
4042 contents_size += request2size(sizes[i]); in ialloc()
4045 size = contents_size + array_size; in ialloc()
4073 array_chunk = chunk_plus_offset(p, contents_size); in ialloc()
4074 array_chunk_size = remainder_size - contents_size; in ialloc()
4077 remainder_size = contents_size; in ialloc()
/external/dlmalloc/
Dmalloc.c5007 size_t contents_size; /* total size of elements */ in ialloc() local
5037 contents_size = n_elements * element_size; in ialloc()
5041 contents_size = 0; in ialloc()
5043 contents_size += request2size(sizes[i]); in ialloc()
5046 size = contents_size + array_size; in ialloc()
5074 array_chunk = chunk_plus_offset(p, contents_size); in ialloc()
5075 array_chunk_size = remainder_size - contents_size; in ialloc()
5078 remainder_size = contents_size; in ialloc()