Searched refs:buffer (Results 1 - 25 of 29) sorted by relevance

12

/art/compiler/utils/x86/
H A Dassembler_x86_test.cc24 AssemblerBuffer buffer; local
25 AssemblerBuffer::EnsureCapacity ensured(&buffer);
26 buffer.Emit<uint8_t>(0x42);
27 ASSERT_EQ(static_cast<size_t>(1), buffer.Size());
28 buffer.Emit<int32_t>(42);
29 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
/art/compiler/
H A Dfile_output_stream.cc28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument
29 return file_->WriteFully(buffer, byte_count);
H A Dbuffered_output_stream.cc26 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 Dfile_output_stream.h32 virtual bool WriteFully(const void* buffer, size_t byte_count);
H A Dvector_output_stream.h34 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 Dbuffered_output_stream.h34 virtual bool WriteFully(const void* buffer, size_t byte_count);
H A Doutput_stream.h45 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
H A Delf_writer_quick.h54 void ReservePatchSpace(std::vector<uint8_t>* buffer, bool debug);
/art/runtime/base/
H A Dbit_vector.cc398 std::ostringstream buffer; local
399 DumpHelper(prefix, buffer);
400 os << buffer.str() << std::endl;
404 void BitVector::DumpDotHelper(bool last_entry, FILE* file, std::ostringstream& buffer) const {
406 fprintf(file, " {%s}", buffer.str().c_str());
418 std::ostringstream buffer; local
419 DumpHelper(prefix, buffer);
420 DumpDotHelper(last_entry, file, buffer);
424 std::ostringstream buffer; local
425 DumpIndicesHelper(prefix, buffer);
[all...]
H A Dbit_vector.h225 * @brief Dump the bitvector into buffer in a 00101..01 format.
226 * @param buffer the ostringstream used to dump the bitvector into.
228 void DumpHelper(const char* prefix, std::ostringstream& buffer) const;
232 * @param buffer the ostringstream used to dump the bitvector into.
234 void DumpIndicesHelper(const char* prefix, std::ostringstream& buffer) const;
238 * @param buffer the ostringstream used to dump the bitvector into.
240 void DumpDotHelper(bool last_entry, FILE* file, std::ostringstream& buffer) const;
H A Dlogging.cc138 data_->buffer << ": " << strerror(data_->error);
140 std::string msg(data_->buffer.str());
H A Dlogging.h195 std::ostringstream buffer; member in struct:art::LogMessageData
214 return data_->buffer;
/art/compiler/optimizing/
H A Dliveness_test.cc31 std::ostream& buffer,
34 buffer << prefix;
35 buffer << '(';
37 buffer << vector->IsBitSet(i);
39 buffer << ")\n";
56 std::ostringstream buffer; local
59 buffer << "Block " << block->GetBlockId() << std::endl;
62 DumpBitVector(live_in, buffer, ssa_values, " live in: ");
64 DumpBitVector(live_out, buffer, ssa_values, " live out: ");
66 DumpBitVector(kill, buffer, ssa_value
30 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument
[all...]
H A Dcode_generator.cc64 uint8_t* buffer = allocator->Allocate(code_size); local
65 MemoryRegion code(buffer, code_size);
90 uint8_t* buffer = allocator->Allocate(code_size); local
91 MemoryRegion code(buffer, code_size);
/art/runtime/base/unix_file/
H A Dfd_file_test.cc75 uint8_t buffer[16]; local
76 EXPECT_FALSE(file.ReadFully(&buffer, 4));
H A Dfd_file.h76 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED;
77 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
H A Dfd_file.cc181 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument
182 char* ptr = static_cast<char*>(buffer);
191 ptr += bytes_read; // Move the buffer forward.
196 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { argument
197 const char* ptr = static_cast<const char*>(buffer);
205 ptr += bytes_written; // Move the buffer forward.
H A Dmapped_file_test.cc142 StringFile buffer; local
143 ASSERT_TRUE(CopyFile(new_file, &buffer));
144 EXPECT_EQ(kContent, buffer.ToStringPiece());
/art/compiler/utils/
H A Dassembler.h198 // Move the contents of the buffer from oldposition to
245 // To emit an instruction to the assembler buffer, the EnsureCapacity helper
249 // AssemblerBuffer buffer;
250 // AssemblerBuffer::EnsureCapacity ensured(&buffer);
257 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument
258 if (buffer->cursor() >= buffer->limit()) {
259 buffer->ExtendCapacity();
261 // In debug mode, we save the assembler buffer along with the gap
262 // size before we start emitting to the buffer
298 EnsureCapacity(AssemblerBuffer* buffer) argument
[all...]
H A Dassembler_test.h511 std::string WriteToFile(std::vector<uint8_t>& buffer, std::string test_name) { argument
513 const char* data = reinterpret_cast<char*>(buffer.data());
515 s_out.write(data, buffer.size());
/art/compiler/utils/x86_64/
H A Dassembler_x86_64_test.cc24 AssemblerBuffer buffer; local
25 AssemblerBuffer::EnsureCapacity ensured(&buffer);
26 buffer.Emit<uint8_t>(0x42);
27 ASSERT_EQ(static_cast<size_t>(1), buffer.Size());
28 buffer.Emit<int32_t>(42);
29 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
/art/runtime/jdwp/
H A Djdwp_adb.cc140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon98
153 msg.msg_control = cm_un.buffer;
154 msg.msg_controllen = sizeof(cm_un.buffer);
/art/test/004-JniTest/
H A Djni_test.cc163 std::vector<uint8_t> buffer(1);
164 jobject byte_buffer = env->NewDirectByteBuffer(&buffer[0], 0);
168 assert(env->GetDirectBufferAddress(byte_buffer) == &buffer[0]);
/art/runtime/
H A Djni_internal_test.cc599 /* AIOOBE for buffer overrun. */ \
605 /* It's okay for the buffer to be nullptr as long as the length is 0. */ \
611 /* It's okay for the buffer to be nullptr as long as the length is 0. */ \
1123 // It's okay for the buffer to be nullptr as long as the length is 0.
1145 // It's okay for the buffer to be nullptr as long as the length is 0.
1609 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); local
1610 ASSERT_NE(buffer, nullptr);
1611 ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class));
1612 ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes);
1613 ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), static_cas
[all...]
/art/dex2oat/
H A Ddex2oat.cc1663 std::unique_ptr<uint8_t> buffer(new uint8_t[buffer_size]);
1665 int bytes_read = TEMP_FAILURE_RETRY(read(in->Fd(), buffer.get(), buffer_size));
1669 bool write_ok = out->WriteFully(buffer.get(), bytes_read);

Completed in 349 milliseconds

12