/external/libchrome/base/ |
pickle.cc | 61 const char* PickleIterator::GetReadPointerAndAdvance(int num_bytes) { 62 if (num_bytes < 0 || 63 end_index_ - read_index_ < static_cast<size_t>(num_bytes)) { 68 Advance(num_bytes); 76 int64_t num_bytes = static_cast<int64_t>(num_elements) * size_element; local 77 int num_bytes32 = static_cast<int>(num_bytes); 78 if (num_bytes != static_cast<int64_t>(num_bytes32)) 333 void* Pickle::ClaimBytes(size_t num_bytes) { 334 void* p = ClaimUninitializedBytesInternal(num_bytes); 336 memset(p, 0, num_bytes); [all...] |
pickle.h | 73 // num_bytes available. Otherwise, does nothing and returns false. 74 bool SkipBytes(int num_bytes) WARN_UNUSED_RESULT { 75 return !!GetReadPointerAndAdvance(num_bytes); 91 // Get read pointer for |num_bytes| and advance read pointer. This method 92 // checks num_bytes for negativity and wrapping. 93 const char* GetReadPointerAndAdvance(int num_bytes); 262 // Claims |num_bytes| bytes of payload. This is similar to Reserve() in that 264 // pickle by |num_bytes|. Claimed memory, including padding, is zeroed. 267 void* ClaimBytes(size_t num_bytes); 311 inline void* ClaimUninitializedBytesInternal(size_t num_bytes); [all...] |
/art/runtime/gc/space/ |
malloc_space.h | 49 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 55 // Allocate num_bytes allowing the underlying space to grow. 56 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, 59 // Allocate num_bytes without allowing the underlying space to grow. 60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 73 virtual size_t MaxBytesBulkAllocatedFor(size_t num_bytes) = 0; 87 // in use, indicated by num_bytes equaling zero.
|
region_space.h | 32 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 43 // Allocate num_bytes, returns null if the space is full. 44 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 48 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, 53 ALWAYS_INLINE mirror::Object* AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated, 59 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size, 275 ALWAYS_INLINE mirror::Object* Alloc(size_t num_bytes, size_t* bytes_allocated, 454 void RecordThreadLocalAllocations(size_t num_objects, size_t num_bytes) { 459 top_ = begin_ + num_bytes;
|
/external/libweave/third_party/libuweave/src/ |
macaroon_encoding.c | 233 size_t num_bytes = uint_min_len_(unsigned_int); local 234 if (num_bytes > buff_len) { 239 switch (num_bytes) { 259 size_t num_bytes, 261 if (bytes == NULL || num_bytes == 0 || num_bytes > 4 || 267 switch (num_bytes) {
|
/external/valgrind/tests/ |
s390x_features.c | 118 size_t num_bytes, file_buf_size; local 130 num_bytes = 0; 138 num_bytes += n; 142 if (n < 0) num_bytes = 0; /* read error; ignore contents */ 144 if (num_bytes > file_buf_size) { 147 file_buf = malloc(num_bytes + 1); 148 n = read(fh, file_buf, num_bytes); 149 if (n < 0) num_bytes = 0; 152 file_buf[num_bytes] = '\0';
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
mlos_linux.c | 42 * @param num_bytes number of bytes 45 void *inv_malloc(unsigned int num_bytes) 48 void *alloc_ptr = malloc(num_bytes);
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
mlos_linux.c | 42 * @param num_bytes number of bytes 45 void *inv_malloc(unsigned int num_bytes) 48 void *alloc_ptr = malloc(num_bytes);
|
/external/libchrome/crypto/ |
rsa_private_key.h | 86 void PrependInteger(uint8_t* val, int num_bytes, std::list<uint8_t>* data); 88 // Prepends the integer stored in |val| - |val + num_bytes| with |big_endian| 91 int num_bytes, 111 // |num_bytes| bytes onto |data|. 114 int num_bytes, 127 int num_bytes,
|
/external/libjpeg-turbo/ |
jdatasrc-tj.c | 106 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 114 if (num_bytes > 0) { 115 while (num_bytes > (long) src->bytes_in_buffer) { 116 num_bytes -= (long) src->bytes_in_buffer; 122 src->next_input_byte += (size_t) num_bytes; 123 src->bytes_in_buffer -= (size_t) num_bytes;
|
jdatasrc.c | 162 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 170 if (num_bytes > 0) { 171 while (num_bytes > (long) src->bytes_in_buffer) { 172 num_bytes -= (long) src->bytes_in_buffer; 178 src->next_input_byte += (size_t) num_bytes; 179 src->bytes_in_buffer -= (size_t) num_bytes;
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/commands/ |
du.py | 141 def _PrintSummaryLine(self, num_bytes, name): 142 size_string = (MakeHumanReadable(num_bytes) 143 if self.human_readable else str(num_bytes)) 164 num_bytes = 0 170 num_bytes = obj.size 179 return (num_objs, num_bytes) 229 def _PrintDirectory(num_bytes, name): 231 self._PrintSummaryLine(num_bytes, name)
|
/system/tpm/tpm_manager/server/ |
tpm2_initializer_impl.h | 64 // Gets random bytes of length |num_bytes| and populates the string at 66 bool GetTpmRandomData(size_t num_bytes, std::string* random_data);
|
openssl_crypto_util_impl.h | 41 bool GetRandomBytes(size_t num_bytes,
|
/art/compiler/debug/dwarf/ |
writer.h | 117 void PushData(const uint8_t* ptr, size_t num_bytes) { 118 data_->insert(data_->end(), ptr, ptr + num_bytes); 121 void PushData(const char* ptr, size_t num_bytes) { 122 data_->insert(data_->end(), ptr, ptr + num_bytes);
|
/external/libnfc-nci/src/nfa/include/ |
nfa_mem_co.h | 54 NFC_API extern void *nfa_mem_co_alloc (UINT32 num_bytes);
|
/external/webrtc/webrtc/test/ |
rtcp_packet_parser.cc | 130 uint16_t num_bytes = rpsi_.NumberOfValidBits / 8; local 131 assert(num_bytes > 0); 133 for (uint16_t i = 0; i < num_bytes - 1; ++i) { 137 picture_id += (rpsi_.NativeBitString[num_bytes - 1] & 0x7f);
|
/hardware/qcom/msm8994/original-kernel-headers/media/ |
msm_cam_sensor.h | 261 uint32_t num_bytes; member in struct:eeprom_get_t 266 uint32_t num_bytes; member in struct:eeprom_read_t 271 uint32_t num_bytes; member in struct:eeprom_write_t 358 uint32_t num_bytes; member in struct:eeprom_read_t32 363 uint32_t num_bytes; member in struct:eeprom_write_t32
|
/external/boringssl/src/crypto/bio/ |
bio.c | 550 const size_t num_bytes = length_byte & 0x7f; local 552 if ((tag & 0x20 /* constructed */) != 0 && num_bytes == 0) { 558 if (num_bytes == 0 || num_bytes > 4) { 562 if (BIO_read(bio, header + kInitialHeaderLen, num_bytes) != 563 (int)num_bytes) { 566 header_len = kInitialHeaderLen + num_bytes; 570 for (i = 0; i < num_bytes; i++) { 580 if ((len32 >> ((num_bytes-1)*8)) == 0) {
|
/external/opencv3/3rdparty/libjpeg/ |
jdatasrc.c | 156 skip_input_data (j_decompress_ptr cinfo, long num_bytes) 164 if (num_bytes > 0) { 165 while (num_bytes > (long) src->bytes_in_buffer) { 166 num_bytes -= (long) src->bytes_in_buffer; 172 src->next_input_byte += (size_t) num_bytes; 173 src->bytes_in_buffer -= (size_t) num_bytes;
|
/system/tpm/trunks/ |
trunks_factory_for_test.cc | 158 TPM_RC GenerateRandom(size_t num_bytes, 161 return target_->GenerateRandom(num_bytes, delegate, random_data); 310 size_t num_bytes, 312 return target_->DefineNVSpace(index, num_bytes, delegate); 334 size_t num_bytes, 337 return target_->ReadNVSpace(index, offset, num_bytes, nvram_data, delegate);
|
/bionic/libc/malloc_debug/ |
GuardData.cpp | 42 GuardData::GuardData(int init_value, size_t num_bytes) { 44 cmp_mem_.resize(num_bytes);
|
/device/google/dragon/crash_collector/ |
coredump_writer.cc | 65 bool Read(void* buf, size_t num_bytes) { 66 if (!android::base::ReadFully(fd_, buf, num_bytes)) 68 bytes_read_ += num_bytes; 73 bool CopyTo(int fd_dest, size_t num_bytes) { 76 while (num_bytes > 0) { 78 read(fd_, buf, std::min(kBufSize, num_bytes))); 85 num_bytes -= rv; 88 return num_bytes == 0;
|
/external/libnfc-nci/src/udrv/include/ |
uamp_api.h | 125 ** num_bytes: number of bytes to write 131 BT_API UINT16 UAMP_Write(tUAMP_ID amp_id, UINT8 *p_buf, UINT16 num_bytes, tUAMP_CH channel);
|
/system/tpm/attestation/common/ |
crypto_utility.h | 31 // Generates |num_bytes| of |random_data|. Returns true on success. 32 virtual bool GetRandom(size_t num_bytes, std::string* random_data) const = 0;
|