Searched defs:buffer (Results 1 - 10 of 10) sorted by relevance

/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, int64_t byte_count) { argument
29 return file_->WriteFully(buffer, byte_count);
H A Dbuffered_output_stream.cc26 bool BufferedOutputStream::WriteFully(const void* buffer, int64_t byte_count) { argument
29 return out_->WriteFully(buffer, byte_count);
37 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
H A Dvector_output_stream.h34 bool WriteFully(const void* buffer, int64_t byte_count) { argument
36 const uint8_t* start = reinterpret_cast<const uint8_t*>(buffer);
42 memcpy(&vector_[offset_], buffer, byte_count);
/art/runtime/base/unix_file/
H A Dmapped_file_test.cc123 StringFile buffer; local
124 ASSERT_TRUE(CopyFile(new_file, &buffer));
125 EXPECT_EQ(kContent, buffer.ToStringPiece());
H A Dfd_file.cc109 bool FdFile::ReadFully(void* buffer, int64_t byte_count) { argument
110 char* ptr = static_cast<char*>(buffer);
117 ptr += bytes_read; // Move the buffer forward.
122 bool FdFile::WriteFully(const void* buffer, int64_t byte_count) { argument
123 const char* ptr = static_cast<const char*>(buffer);
130 ptr += bytes_read; // Move the buffer forward.
/art/runtime/jdwp/
H A Djdwp_adb.cc140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon30
153 msg.msg_control = cm_un.buffer;
154 msg.msg_controllen = sizeof(cm_un.buffer);
/art/compiler/utils/
H A Dassembler.h207 // To emit an instruction to the assembler buffer, the EnsureCapacity helper
211 // AssemblerBuffer buffer;
212 // AssemblerBuffer::EnsureCapacity ensured(&buffer);
219 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument
220 if (buffer->cursor() >= buffer->limit()) {
221 buffer->ExtendCapacity();
223 // In debug mode, we save the assembler buffer along with the gap
224 // size before we start emitting to the buffer. This allows us to
227 buffer_ = buffer;
260 EnsureCapacity(AssemblerBuffer* buffer) argument
[all...]
/art/runtime/base/
H A Dlogging.h179 std::ostringstream buffer; member in struct:art::LogMessageData
198 return data_->buffer;
/art/runtime/
H A Djni_internal_test.cc1030 /* AIOOBE for buffer overrun. */ \
1847 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); local
1848 ASSERT_TRUE(buffer != NULL);
1849 ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class));
1850 ASSERT_TRUE(env_->GetDirectBufferAddress(buffer) == bytes);
1851 ASSERT_TRUE(env_->GetDirectBufferCapacity(buffer) == sizeof(bytes));

Completed in 3824 milliseconds