Lines Matching refs:bytes
3993 std::vector<uint8_t> bytes; in DdmSendThreadNotification() local
3994 JDWP::Append4BE(bytes, t->GetThreadId()); in DdmSendThreadNotification()
3995 JDWP::AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
3996 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); in DdmSendThreadNotification()
3997 Dbg::DdmSendChunk(type, bytes); in DdmSendThreadNotification()
4048 void Dbg::DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes) { in DdmSendChunk() argument
4049 DdmSendChunk(type, bytes.size(), &bytes[0]); in DdmSendChunk()
4123 std::vector<uint8_t> bytes; in DdmSendHeapInfo() local
4124 JDWP::Append4BE(bytes, heap_count); in DdmSendHeapInfo()
4125 JDWP::Append4BE(bytes, 1); // Heap id (bogus; we only have one heap). in DdmSendHeapInfo()
4126 JDWP::Append8BE(bytes, MilliTime()); in DdmSendHeapInfo()
4127 JDWP::Append1BE(bytes, reason); in DdmSendHeapInfo()
4128 JDWP::Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes. in DdmSendHeapInfo()
4129 JDWP::Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes. in DdmSendHeapInfo()
4130 JDWP::Append4BE(bytes, heap->GetBytesAllocated()); in DdmSendHeapInfo()
4131 JDWP::Append4BE(bytes, heap->GetObjectsAllocated()); in DdmSendHeapInfo()
4132 CHECK_EQ(bytes.size(), 4U + (heap_count * (4 + 8 + 1 + 4 + 4 + 4 + 4))); in DdmSendHeapInfo()
4133 Dbg::DdmSendChunk(CHUNK_TYPE("HPIF"), bytes); in DdmSendHeapInfo()
4672 void WriteTo(std::vector<uint8_t>& bytes) const { in WriteTo()
4678 JDWP::AppendUtf16BE(bytes, s_utf16.get(), s_len); in WriteTo()
4742 std::vector<uint8_t> bytes; in GetRecentAllocations() local
4783 JDWP::Append1BE(bytes, kMessageHeaderLen); in GetRecentAllocations()
4784 JDWP::Append1BE(bytes, kEntryHeaderLen); in GetRecentAllocations()
4785 JDWP::Append1BE(bytes, kStackFrameLen); in GetRecentAllocations()
4792 JDWP::Append2BE(bytes, capped_count); in GetRecentAllocations()
4793 size_t string_table_offset = bytes.size(); in GetRecentAllocations()
4794 JDWP::Append4BE(bytes, 0); // We'll patch this later... in GetRecentAllocations()
4795 JDWP::Append2BE(bytes, class_names.Size()); in GetRecentAllocations()
4796 JDWP::Append2BE(bytes, method_names.Size()); in GetRecentAllocations()
4797 JDWP::Append2BE(bytes, filenames.Size()); in GetRecentAllocations()
4811 JDWP::Append4BE(bytes, record->ByteCount()); in GetRecentAllocations()
4812 JDWP::Append2BE(bytes, record->ThinLockId()); in GetRecentAllocations()
4813 JDWP::Append2BE(bytes, allocated_object_class_name_index); in GetRecentAllocations()
4814 JDWP::Append1BE(bytes, stack_depth); in GetRecentAllocations()
4826 JDWP::Append2BE(bytes, class_name_index); in GetRecentAllocations()
4827 JDWP::Append2BE(bytes, method_name_index); in GetRecentAllocations()
4828 JDWP::Append2BE(bytes, file_name_index); in GetRecentAllocations()
4829 JDWP::Append2BE(bytes, record->StackElement(stack_frame)->LineNumber()); in GetRecentAllocations()
4837 JDWP::Set4BE(&bytes[string_table_offset], bytes.size()); in GetRecentAllocations()
4838 class_names.WriteTo(bytes); in GetRecentAllocations()
4839 method_names.WriteTo(bytes); in GetRecentAllocations()
4840 filenames.WriteTo(bytes); in GetRecentAllocations()
4843 jbyteArray result = env->NewByteArray(bytes.size()); in GetRecentAllocations()
4845 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in GetRecentAllocations()