Lines Matching refs:msg
19 // the lenght of fidl message required to encode this msg object.
22 LogMessage(fbl::String msg, fbl::initializer_list<fbl::String> tags,
24 : msg_(msg), tags_(tags), pid_(pid), dropped_logs_(dropped_logs) {}
26 LogMessage(fbl::String msg, uint32_t dropped_logs = 0, uint64_t pid = 1024)
27 : LogMessage(msg, {}, dropped_logs, pid) {}
37 const fbl::String* msg() const {
49 lm->msg.size = msg_.length();
50 lm->msg.data = reinterpret_cast<char*>(FIDL_ALLOC_PRESENT);
85 // write msg
86 auto msg = log_msg.msg();
87 memcpy(payload + offset, msg->data(), msg->length());
88 offset += FIDL_ALIGN(msg->length());
92 // Encode |log_msgs| with help from other helpers and writes the msg to
115 uint8_t msg[msg_len];
116 memset(msg, 0, msg_len);
117 fidl_message_header_t* hdr = reinterpret_cast<fidl_message_header_t*>(msg);
135 return listener.write(0, msg, static_cast<uint32_t>(msg_len), NULL, 0);