Lines Matching refs:bytes
314 std::vector<uint8_t> bytes; in DdmSendThreadNotification() local
315 Append4BE(bytes, t->GetThreadId()); in DdmSendThreadNotification()
318 AppendUtf16CompressedBE(bytes, chars_compressed, char_count); in DdmSendThreadNotification()
320 AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
322 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); in DdmSendThreadNotification()
323 cb->DdmPublishChunk(type, ArrayRef<const uint8_t>(bytes)); in DdmSendThreadNotification()
424 std::vector<uint8_t> bytes; in DdmSendHeapInfo() local
425 Append4BE(bytes, heap_count); in DdmSendHeapInfo()
426 Append4BE(bytes, 1); // Heap id (bogus; we only have one heap). in DdmSendHeapInfo()
427 Append8BE(bytes, MilliTime()); in DdmSendHeapInfo()
428 Append1BE(bytes, reason); in DdmSendHeapInfo()
429 Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes. in DdmSendHeapInfo()
430 Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes. in DdmSendHeapInfo()
431 Append4BE(bytes, heap->GetBytesAllocated()); in DdmSendHeapInfo()
432 Append4BE(bytes, heap->GetObjectsAllocated()); in DdmSendHeapInfo()
433 CHECK_EQ(bytes.size(), 4U + (heap_count * (4 + 8 + 1 + 4 + 4 + 4 + 4))); in DdmSendHeapInfo()
435 ArrayRef<const uint8_t>(bytes)); in DdmSendHeapInfo()
863 void WriteTo(std::vector<uint8_t>& bytes) const { in WriteTo()
872 AppendUtf16BE(bytes, s_utf16.get(), s_len); in WriteTo()
941 std::vector<uint8_t> bytes; in GetRecentAllocations() local
1010 Append1BE(bytes, kMessageHeaderLen); in GetRecentAllocations()
1011 Append1BE(bytes, kEntryHeaderLen); in GetRecentAllocations()
1012 Append1BE(bytes, kStackFrameLen); in GetRecentAllocations()
1019 Append2BE(bytes, capped_count); in GetRecentAllocations()
1020 size_t string_table_offset = bytes.size(); in GetRecentAllocations()
1021 Append4BE(bytes, 0); // We'll patch this later... in GetRecentAllocations()
1022 Append2BE(bytes, class_names.Size()); in GetRecentAllocations()
1023 Append2BE(bytes, method_names.Size()); in GetRecentAllocations()
1024 Append2BE(bytes, filenames.Size()); in GetRecentAllocations()
1029 size_t reserve_size = bytes.size() + alloc_byte_count; in GetRecentAllocations()
1030 bytes.reserve(reserve_size); in GetRecentAllocations()
1047 Append4BE(bytes, record->ByteCount()); in GetRecentAllocations()
1048 Append2BE(bytes, static_cast<uint16_t>(record->GetTid())); in GetRecentAllocations()
1049 Append2BE(bytes, allocated_object_class_name_index); in GetRecentAllocations()
1050 Append1BE(bytes, stack_depth); in GetRecentAllocations()
1062 Append2BE(bytes, class_name_index); in GetRecentAllocations()
1063 Append2BE(bytes, method_name_index); in GetRecentAllocations()
1064 Append2BE(bytes, file_name_index); in GetRecentAllocations()
1065 Append2BE(bytes, record->StackElement(stack_frame).ComputeLineNumber()); in GetRecentAllocations()
1069 CHECK_EQ(bytes.size(), reserve_size); in GetRecentAllocations()
1075 Set4BE(&bytes[string_table_offset], bytes.size()); in GetRecentAllocations()
1076 class_names.WriteTo(bytes); in GetRecentAllocations()
1077 method_names.WriteTo(bytes); in GetRecentAllocations()
1078 filenames.WriteTo(bytes); in GetRecentAllocations()
1080 VLOG(jdwp) << "GetRecentAllocations: data created. " << bytes.size(); in GetRecentAllocations()
1083 jbyteArray result = env->NewByteArray(bytes.size()); in GetRecentAllocations()
1085 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in GetRecentAllocations()