Lines Matching refs:bytes
323 std::vector<uint8_t> bytes; in DdmSendThreadNotification() local
324 Append4BE(bytes, t->GetThreadId()); in DdmSendThreadNotification()
327 AppendUtf16CompressedBE(bytes, chars_compressed, char_count); in DdmSendThreadNotification()
329 AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
331 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); in DdmSendThreadNotification()
332 cb->DdmPublishChunk(type, ArrayRef<const uint8_t>(bytes)); in DdmSendThreadNotification()
433 std::vector<uint8_t> bytes; in DdmSendHeapInfo() local
434 Append4BE(bytes, heap_count); in DdmSendHeapInfo()
435 Append4BE(bytes, 1); // Heap id (bogus; we only have one heap). in DdmSendHeapInfo()
436 Append8BE(bytes, MilliTime()); in DdmSendHeapInfo()
437 Append1BE(bytes, reason); in DdmSendHeapInfo()
438 Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes. in DdmSendHeapInfo()
439 Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes. in DdmSendHeapInfo()
440 Append4BE(bytes, heap->GetBytesAllocated()); in DdmSendHeapInfo()
441 Append4BE(bytes, heap->GetObjectsAllocated()); in DdmSendHeapInfo()
442 CHECK_EQ(bytes.size(), 4U + (heap_count * (4 + 8 + 1 + 4 + 4 + 4 + 4))); in DdmSendHeapInfo()
444 ArrayRef<const uint8_t>(bytes)); in DdmSendHeapInfo()
872 void WriteTo(std::vector<uint8_t>& bytes) const { in WriteTo()
881 AppendUtf16BE(bytes, s_utf16.get(), s_len); in WriteTo()
950 std::vector<uint8_t> bytes; in GetRecentAllocations() local
1019 Append1BE(bytes, kMessageHeaderLen); in GetRecentAllocations()
1020 Append1BE(bytes, kEntryHeaderLen); in GetRecentAllocations()
1021 Append1BE(bytes, kStackFrameLen); in GetRecentAllocations()
1028 Append2BE(bytes, capped_count); in GetRecentAllocations()
1029 size_t string_table_offset = bytes.size(); in GetRecentAllocations()
1030 Append4BE(bytes, 0); // We'll patch this later... in GetRecentAllocations()
1031 Append2BE(bytes, class_names.Size()); in GetRecentAllocations()
1032 Append2BE(bytes, method_names.Size()); in GetRecentAllocations()
1033 Append2BE(bytes, filenames.Size()); in GetRecentAllocations()
1038 size_t reserve_size = bytes.size() + alloc_byte_count; in GetRecentAllocations()
1039 bytes.reserve(reserve_size); in GetRecentAllocations()
1056 Append4BE(bytes, record->ByteCount()); in GetRecentAllocations()
1057 Append2BE(bytes, static_cast<uint16_t>(record->GetTid())); in GetRecentAllocations()
1058 Append2BE(bytes, allocated_object_class_name_index); in GetRecentAllocations()
1059 Append1BE(bytes, stack_depth); in GetRecentAllocations()
1071 Append2BE(bytes, class_name_index); in GetRecentAllocations()
1072 Append2BE(bytes, method_name_index); in GetRecentAllocations()
1073 Append2BE(bytes, file_name_index); in GetRecentAllocations()
1074 Append2BE(bytes, record->StackElement(stack_frame).ComputeLineNumber()); in GetRecentAllocations()
1078 CHECK_EQ(bytes.size(), reserve_size); in GetRecentAllocations()
1084 Set4BE(&bytes[string_table_offset], bytes.size()); in GetRecentAllocations()
1085 class_names.WriteTo(bytes); in GetRecentAllocations()
1086 method_names.WriteTo(bytes); in GetRecentAllocations()
1087 filenames.WriteTo(bytes); in GetRecentAllocations()
1089 VLOG(jdwp) << "GetRecentAllocations: data created. " << bytes.size(); in GetRecentAllocations()
1092 jbyteArray result = env->NewByteArray(bytes.size()); in GetRecentAllocations()
1094 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0])); in GetRecentAllocations()