Lines Matching defs:bytes
3023 std::vector<uint8_t> bytes;
3024 JDWP::Append4BE(bytes, t->GetThinLockId());
3025 JDWP::AppendUtf16BE(bytes, chars, char_count);
3026 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2);
3027 Dbg::DdmSendChunk(type, bytes);
3080 void Dbg::DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes) {
3081 DdmSendChunk(type, bytes.size(), &bytes[0]);
3148 * [u4]: max heap size in bytes (-Xmx)
3149 * [u4]: current heap size in bytes
3150 * [u4]: current number of bytes allocated
3155 std::vector<uint8_t> bytes;
3156 JDWP::Append4BE(bytes, heap_count);
3157 JDWP::Append4BE(bytes, 1); // Heap id (bogus; we only have one heap).
3158 JDWP::Append8BE(bytes, MilliTime());
3159 JDWP::Append1BE(bytes, reason);
3160 JDWP::Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes.
3161 JDWP::Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes.
3162 JDWP::Append4BE(bytes, heap->GetBytesAllocated());
3163 JDWP::Append4BE(bytes, heap->GetObjectsAllocated());
3164 CHECK_EQ(bytes.size(), 4U + (heap_count * (4 + 8 + 1 + 4 + 4 + 4 + 4)));
3165 Dbg::DdmSendChunk(CHUNK_TYPE("HPIF"), bytes);
3221 JDWP::Write1BE(&p_, 8); // Size of allocation unit, in bytes.
3321 // We need to use two bytes for every fractional 256 allocation units used by the chunk plus
3322 // 17 bytes for any header.
3332 << needed << " bytes)";
3585 LOG(INFO) << StringPrintf(" Thread %-2d %6zd bytes ", record->thin_lock_id, record->byte_count)
3626 void WriteTo(std::vector<uint8_t>& bytes) const {
3632 JDWP::AppendUtf16BE(bytes, s_utf16.get(), s_len);
3689 std::vector<uint8_t> bytes;
3732 JDWP::Append1BE(bytes, kMessageHeaderLen);
3733 JDWP::Append1BE(bytes, kEntryHeaderLen);
3734 JDWP::Append1BE(bytes, kStackFrameLen);
3741 JDWP::Append2BE(bytes, gAllocRecordCount);
3742 size_t string_table_offset = bytes.size();
3743 JDWP::Append4BE(bytes, 0); // We'll patch this later...
3744 JDWP::Append2BE(bytes, class_names.Size());
3745 JDWP::Append2BE(bytes, method_names.Size());
3746 JDWP::Append2BE(bytes, filenames.Size());
3761 JDWP::Append4BE(bytes, record->byte_count);
3762 JDWP::Append2BE(bytes, record->thin_lock_id);
3763 JDWP::Append2BE(bytes, allocated_object_class_name_index);
3764 JDWP::Append1BE(bytes, stack_depth);
3777 JDWP::Append2BE(bytes, class_name_index);
3778 JDWP::Append2BE(bytes, method_name_index);
3779 JDWP::Append2BE(bytes, file_name_index);
3780 JDWP::Append2BE(bytes, record->stack[stack_frame].LineNumber());
3789 JDWP::Set4BE(&bytes[string_table_offset], bytes.size());
3790 class_names.WriteTo(bytes);
3791 method_names.WriteTo(bytes);
3792 filenames.WriteTo(bytes);
3795 jbyteArray result = env->NewByteArray(bytes.size());
3797 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0]));