/art/compiler/ |
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 | buffered_output_stream.cc | 26 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 29 return out_->WriteFully(buffer, byte_count); 37 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
|
H A D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) { argument 36 const uint8_t* start = reinterpret_cast<const uint8_t*>(buffer); 42 memcpy(&(*vector_)[offset_], buffer, byte_count);
|
H A D | elf_writer_quick.cc | 75 std::vector<uint8_t>* buffer) { 76 buffer->reserve(buffer->size() + locations.size() * 2); // guess 2 bytes per ULEB128. 80 EncodeUnsignedLeb128(buffer, dchecked_integral_cast<uint32_t>(location - address)); 115 // Patch memory addresses within a buffer. 121 std::vector<uint8_t>* buffer) { 124 auto* to_patch = reinterpret_cast<UnalignedAddress*>(buffer->data() + location); 74 EncodeOatPatches(const std::vector<uintptr_t>& locations, std::vector<uint8_t>* buffer) argument 119 Patch(const std::vector<uintptr_t>& patch_locations, Elf_Addr buffer_address, Elf_Addr base_address, std::vector<uint8_t>* buffer) argument
|
H A D | elf_builder.h | 129 std::vector<Elf_Dyn> buffer; variable 130 buffer.reserve(dynamics_.size() + 1u); 134 buffer.push_back( 137 buffer.push_back({it.tag_, {it.value_}}); 140 buffer.push_back({DT_NULL, {0}}); 141 return WriteArray(elf_file, buffer.data(), buffer.size()); 156 std::vector<uint8_t>* buffer); 158 // Section with content based on simple memory buffer. 159 // The buffer ca 199 SetBuffer(const std::vector<uint8_t>& buffer) argument 326 std::vector<Elf_Sym> buffer; variable [all...] |
/art/compiler/utils/x86/ |
H A D | assembler_x86_test.cc | 25 AssemblerBuffer buffer; local 26 AssemblerBuffer::EnsureCapacity ensured(&buffer); 27 buffer.Emit<uint8_t>(0x42); 28 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 29 buffer.Emit<int32_t>(42); 30 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/art/runtime/base/unix_file/ |
H A D | fd_file_test.cc | 75 uint8_t buffer[16]; local 76 EXPECT_FALSE(file.ReadFully(&buffer, 4)); 106 char buffer[sizeof(read_suffix)]; local 107 EXPECT_TRUE(file.PreadFully(buffer, sizeof(read_suffix), offset)); 108 EXPECT_STREQ(&read_suffix[0], &buffer[0]);
|
H A D | fd_file.cc | 187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 188 char* ptr = static_cast<char*>(buffer); 197 ptr += bytes_read; // Move the buffer forward. 203 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument 204 return ReadFullyGeneric<ReadIgnoreOffset>(fd_, buffer, byte_count, 0); 207 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { argument 208 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset); 211 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { argument 212 const char* ptr = static_cast<const char*>(buffer); 220 ptr += bytes_written; // Move the buffer forwar [all...] |
/art/compiler/optimizing/ |
H A D | liveness_test.cc | 35 std::ostream& buffer, 38 buffer << prefix; 39 buffer << '('; 41 buffer << vector->IsBitSet(i); 43 buffer << ")\n"; 63 std::ostringstream buffer; local 66 buffer << "Block " << block->GetBlockId() << std::endl; 69 DumpBitVector(live_in, buffer, ssa_values, " live in: "); 71 DumpBitVector(live_out, buffer, ssa_values, " live out: "); 73 DumpBitVector(kill, buffer, ssa_value 34 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument [all...] |
H A D | code_generator.cc | 204 uint8_t* buffer = allocator->Allocate(code_size); local 206 MemoryRegion code(buffer, code_size);
|
/art/compiler/dwarf/ |
H A D | dwarf_test.h | 100 char buffer[1024]; local 102 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) {
|
H A D | writer.h | 120 void PushData(const std::vector<uint8_t, Allocator2>* buffer) { argument 121 data_->insert(data_->end(), buffer->begin(), buffer->end()); 162 explicit Writer(std::vector<uint8_t, Allocator>* buffer) : data_(buffer) { } argument
|
/art/runtime/native/ |
H A D | java_lang_String.cc | 84 jcharArray buffer, jint index) { 87 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray*>(buffer))); 83 String_getCharsNoCheck(JNIEnv* env, jobject java_this, jint start, jint end, jcharArray buffer, jint index) argument
|
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64_test.cc | 30 AssemblerBuffer buffer; local 31 AssemblerBuffer::EnsureCapacity ensured(&buffer); 32 buffer.Emit<uint8_t>(0x42); 33 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 34 buffer.Emit<int32_t>(42); 35 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/art/runtime/base/ |
H A D | bit_vector.cc | 334 std::ostringstream buffer; local 335 DumpHelper(prefix, buffer); 336 os << buffer.str() << std::endl; 339 void BitVector::DumpHelper(const char* prefix, std::ostringstream& buffer) const { 342 buffer << prefix; 345 buffer << '('; 347 buffer << IsBitSet(i); 349 buffer << ')';
|
/art/runtime/jdwp/ |
H A D | jdwp_adb.cc | 140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon105 153 msg.msg_control = cm_un.buffer; 154 msg.msg_controllen = sizeof(cm_un.buffer);
|
/art/compiler/utils/ |
H A D | assembler.h | 204 // Move the contents of the buffer from oldposition to 251 // To emit an instruction to the assembler buffer, the EnsureCapacity helper 255 // AssemblerBuffer buffer; 256 // AssemblerBuffer::EnsureCapacity ensured(&buffer); 263 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument 264 if (buffer->cursor() >= buffer->limit()) { 265 buffer->ExtendCapacity(); 267 // In debug mode, we save the assembler buffer along with the gap 268 // size before we start emitting to the buffer 304 EnsureCapacity(AssemblerBuffer* buffer) argument 366 DebugFrameOpCodeWriterForAssembler(Assembler* buffer) argument [all...] |
H A D | assembler_test_base.h | 336 std::string WriteToFile(const std::vector<uint8_t>& buffer, std::string test_name) { argument 338 const char* data = reinterpret_cast<const char*>(buffer.data()); 340 s_out.write(data, buffer.size());
|
/art/runtime/ |
H A D | jni_internal_test.cc | 1021 /* AIOOBE for buffer overrun. */ \ 1027 /* It's okay for the buffer to be null as long as the length is 0. */ \ 1033 /* It's okay for the buffer to be null as long as the length is 0. */ \ 1465 // It's okay for the buffer to be null as long as the length is 0. 1487 // It's okay for the buffer to be null as long as the length is 0. 2042 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); local 2043 ASSERT_NE(buffer, nullptr); 2044 ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class)); 2045 ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes); 2046 ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), static_cas [all...] |
H A D | utils.cc | 159 constexpr size_t kBufSize = 256; // Small buffer. Avoid stack overflow and stack size warnings. 166 // Print the rest of the buffer, if it exists. 1044 constexpr size_t kMaxBuffer = 128; // Relatively small buffer. Should be OK as we're on an 1046 char buffer[kMaxBuffer]; local 1048 if (fgets(buffer, kMaxBuffer, stream) != nullptr) { 1050 char* tmp = buffer;
|