/art/compiler/linker/ |
H A D | buffered_output_stream.cc | 32 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 33 if (byte_count > kBufferSize) { 37 return out_->WriteFully(buffer, byte_count); 39 if (used_ + byte_count > kBufferSize) { 45 memcpy(&buffer_[used_], src, byte_count); 46 used_ += byte_count;
|
H A D | file_output_stream.cc | 28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 29 return file_->WriteFully(buffer, byte_count);
|
H A D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { 37 vector_->insert(vector_->end(), &start[0], &start[byte_count]); 38 offset_ += byte_count; 40 off_t new_offset = offset_ + byte_count; 42 memcpy(&(*vector_)[offset_], buffer, byte_count);
|
H A D | error_delaying_output_stream.h | 37 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { 39 if (!output_->WriteFully(buffer, byte_count)) { 40 PLOG(ERROR) << "Failed to write " << byte_count 45 output_offset_ += byte_count;
|
H A D | file_output_stream.h | 32 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
|
H A D | buffered_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
|
H A D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
H A D | output_stream_test.cc | 110 size_t byte_count ATTRIBUTE_UNUSED) OVERRIDE {
|
/art/runtime/base/unix_file/ |
H A D | random_access_file.h | 43 // Reads 'byte_count' bytes into 'buf' starting at offset 'offset' in the 45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0; 56 // Writes 'byte_count' bytes from 'buf' starting at offset 'offset' in the 60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
|
H A D | fd_file.cc | 154 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { argument 156 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); 158 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); 180 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument 183 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); 185 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); 213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 215 while (byte_count > 0) { 216 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); 222 byte_count 229 ReadFully(void* buffer, size_t byte_count) argument 233 PreadFully(void* buffer, size_t byte_count, size_t offset) argument 238 WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset) argument 257 PwriteFully(const void* buffer, size_t byte_count, size_t offset) argument 261 WriteFully(const void* buffer, size_t byte_count) argument [all...] |
H A D | fd_file.h | 55 int64_t Read(char* buf, int64_t byte_count, int64_t offset) const OVERRIDE WARN_UNUSED; 58 int64_t Write(const char* buf, int64_t byte_count, int64_t offset) OVERRIDE WARN_UNUSED; 79 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 80 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 81 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED; 82 bool PwriteFully(const void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 124 bool WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset);
|
/art/runtime/base/ |
H A D | hex_dump.cc | 55 size_t byte_count = byte_count_; local 57 while (byte_count > 0) { 71 size_t count = std::min(byte_count, 16 - gap); 104 byte_count -= count; 106 if (byte_count > 0) {
|
H A D | hex_dump.h | 32 HexDump(const void* address, size_t byte_count, bool show_actual_addresses, const char* prefix) argument 33 : address_(address), byte_count_(byte_count), show_actual_addresses_(show_actual_addresses),
|
/art/runtime/native/ |
H A D | java_lang_StringFactory.cc | 31 jint high, jint offset, jint byte_count) { 40 if ((offset | byte_count) < 0 || byte_count > data_size - offset) { 43 offset, byte_count); 47 mirror::String* result = mirror::String::AllocFromByteArray<true>(soa.Self(), byte_count, 30 StringFactory_newStringFromBytes(JNIEnv* env, jclass, jbyteArray java_data, jint high, jint offset, jint byte_count) argument
|
/art/runtime/entrypoints/quick/ |
H A D | quick_alloc_entrypoints.cc | 38 size_t byte_count = klass->GetObjectSize(); \ 39 byte_count = RoundUp(byte_count, gc::space::BumpPointerSpace::kAlignment); \ 41 if (LIKELY(byte_count < self->TlabSize())) { \ 42 obj = self->AllocTlab(byte_count); \ 64 size_t byte_count = klass->GetObjectSize(); \ 65 byte_count = RoundUp(byte_count, gc::space::BumpPointerSpace::kAlignment); \ 67 if (LIKELY(byte_count < self->TlabSize())) { \ 68 obj = self->AllocTlab(byte_count); \ [all...] |
/art/runtime/gc/ |
H A D | heap-inl.h | 43 size_t byte_count, 47 CheckPreconditionsForAllocObject(klass, byte_count); 56 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { 57 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, 74 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); 78 byte_count <= self->TlabSize()) { 79 obj = self->AllocTlab(byte_count); 88 bytes_allocated = byte_count; 93 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, 41 AllocObjectWithAllocator(Thread* self, mirror::Class* klass, size_t byte_count, AllocatorType allocator, const PreFenceVisitor& pre_fence_visitor) argument 223 AllocLargeObject(Thread* self, mirror::Class** klass, size_t byte_count, const PreFenceVisitor& pre_fence_visitor) argument [all...] |
H A D | allocation_record.cc | 266 size_t byte_count) { 307 Put(*obj, AllocRecord(byte_count, (*obj)->GetClass(), std::move(trace))); 264 RecordAllocation(Thread* self, mirror::Object** obj, size_t byte_count) argument
|
H A D | heap.h | 218 size_t byte_count, 240 void CheckPreconditionsForAllocObject(mirror::Class* c, size_t byte_count) 447 // TODO: element_count or byte_count? 832 bool ShouldAllocLargeObject(mirror::Class* c, size_t byte_count) const 848 size_t byte_count, 888 void ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type)
|
/art/runtime/ |
H A D | utf.h | 43 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count); 77 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count,
|
H A D | mem_map.h | 55 // Request an anonymous region of length 'byte_count' and a requested base address. 66 size_t byte_count, 77 static MemMap* MapDummy(const char* name, uint8_t* addr, size_t byte_count); 83 static MemMap* MapFile(size_t byte_count, argument 92 byte_count, 112 size_t byte_count,
|
H A D | utf.cc | 46 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count) { argument 47 DCHECK_LE(byte_count, strlen(utf8)); 49 const char* end = utf8 + byte_count; 120 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count, argument 122 if (LIKELY(byte_count == char_count)) {
|
H A D | mem_map.cc | 213 static bool CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, argument 224 uintptr_t limit = expected + byte_count; 231 int result = munmap(actual_ptr, byte_count); 233 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count); 280 size_t byte_count, 289 if (byte_count == 0) { 292 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize); 300 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) << *error_msg; 361 return new MemMap(name, reinterpret_cast<uint8_t*>(actual), byte_count, actual, 365 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) { argument 278 MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, bool low_4gb, bool reuse, std::string* error_msg, bool use_ashmem) argument 373 MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, bool reuse, const char* filename, std::string* error_msg) argument [all...] |
/art/runtime/mirror/ |
H A D | string.cc | 112 size_t byte_count = strlen(utf); local 113 size_t char_count = CountModifiedUtf8Chars(utf, byte_count); 114 return AllocFromModifiedUtf8(self, char_count, utf, byte_count); 223 size_t byte_count = GetUtfLength(); local 224 std::string result(byte_count, static_cast<char>(0)); 225 ConvertUtf16ToModifiedUtf8(&result[0], byte_count, chars, GetLength());
|
/art/runtime/jit/ |
H A D | offline_profiling_info.cc | 141 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { argument 142 while (byte_count > 0) { 143 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); 147 byte_count -= bytes_written; // Reduce the number of remaining bytes. 347 size_t byte_count = ptr_end_ - ptr_current_; local 349 while (byte_count > 0) { 350 int bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, byte_count)); 358 byte_count -= bytes_read;
|
/art/runtime/jdwp/ |
H A D | jdwp_priv.h | 83 void ConsumeBytes(size_t byte_count);
|