Home
last modified time | relevance | path

Searched refs:data_num_bytes (Results 1 – 19 of 19) sorted by relevance

/external/libchrome/mojo/public/cpp/bindings/lib/
Dserialization.h89 size_t data_num_bytes,
98 const void* input_buffer = data_num_bytes == 0 ? nullptr : data;
106 aligned_input_buffer = malloc(data_num_bytes);
108 memcpy(aligned_input_buffer, data, data_num_bytes);
112 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(data_num_bytes));
114 input_buffer, static_cast<uint32_t>(data_num_bytes), handles.size(), 0);
Dvalidation_context.cc13 size_t data_num_bytes, in ValidationContext() argument
22 data_end_(data_begin_ + data_num_bytes), in ValidationContext()
Dvalidation_context.h39 size_t data_num_bytes, in COMPONENT_EXPORT()
Dmessage_header_validator.cc126 message->data(), message->data_num_bytes(), 0, 0, message, description_); in Accept()
Dmessage.cc294 DCHECK_GE(data_num_bytes(), header()->num_bytes); in payload_num_bytes()
297 num_bytes = data_num_bytes() - header()->num_bytes; in payload_num_bytes()
304 payload_end = reinterpret_cast<uintptr_t>(data() + data_num_bytes()); in payload_num_bytes()
/external/libchrome/mojo/core/
Dchannel_unittest.cc127 Channel::Message::Deserialize(message->data(), message->data_num_bytes()); in TEST()
136 Channel::Message::Deserialize(message->data(), message->data_num_bytes()); in TEST()
148 ASSERT_LT(message->data_num_bytes(), in TEST()
151 memcpy(read_buffer, message->data(), message->data_num_bytes()); in TEST()
154 EXPECT_TRUE(channel->OnReadCompleteTest(message->data_num_bytes(), in TEST()
170 ASSERT_LT(message->data_num_bytes(), in TEST()
173 memcpy(read_buffer, message->data(), message->data_num_bytes()); in TEST()
176 EXPECT_TRUE(channel->OnReadCompleteTest(message->data_num_bytes(), in TEST()
Dbroker_posix.cc37 message->data_num_bytes(), &incoming_fds, true /* block */); in WaitForBrokerMessage()
42 } else if (static_cast<size_t>(read_result) != message->data_num_bytes()) { in WaitForBrokerMessage()
104 out_message->data_num_bytes()); in GetWritableSharedMemoryRegion()
109 out_message->data_num_bytes()) { in GetWritableSharedMemoryRegion()
Dchannel.cc167 size_t data_num_bytes, in Deserialize() argument
169 if (data_num_bytes < sizeof(LegacyHeader)) in Deserialize()
174 if (legacy_header->num_bytes != data_num_bytes) { in Deserialize()
176 << " != " << data_num_bytes; in Deserialize()
188 payload_size = data_num_bytes - sizeof(LegacyHeader); in Deserialize()
198 payload_size = data_num_bytes - header->num_header_bytes; in Deserialize()
232 DCHECK_EQ(message->data_num_bytes(), data_num_bytes); in Deserialize()
Dchannel_posix.cc51 DCHECK_GT(message_->data_num_bytes(), offset_); in MessageView()
69 size_t data_num_bytes() const { return message_->data_num_bytes() - offset_; } in data_num_bytes() function in mojo::core::__anon048160970111::MessageView
73 DCHECK_GT(message_->data_num_bytes(), offset_ + num_bytes); in advance_data_offset()
514 message_view.data_num_bytes()}; in WriteNoLock()
552 message_view.data_num_bytes()); in WriteNoLock()
584 } while (bytes_written < message_view.data_num_bytes()); in WriteNoLock()
Dnode_channel.cc369 MessageType::BROADCAST_EVENT, message->data_num_bytes(), 0, &data); in Broadcast()
370 memcpy(data, message->data(), message->data_num_bytes()); in Broadcast()
383 size_t num_bytes = sizeof(RelayEventMessageData) + message->data_num_bytes(); in RelayEventMessage()
388 memcpy(data + 1, message->data(), message->data_num_bytes()); in RelayEventMessage()
412 size_t num_bytes = sizeof(RelayEventMessageData) + message->data_num_bytes(); in RelayEventMessage()
417 memcpy(data + 1, message->data(), message->data_num_bytes()); in RelayEventMessage()
721 CHECK(message->data_num_bytes() < GetConfiguration().max_message_num_bytes); in WriteChannelMessage()
Dchannel.h150 size_t data_num_bytes,
154 size_t data_num_bytes() const { return size_; } in data_num_bytes() function
/external/libchrome/mojo/public/tools/fuzzers/
Dmojo_parse_message_proto_fuzzer.cc28 if (message.data_num_bytes() < message_str.size()) { in FuzzMessage()
30 message.data_num_bytes()); in FuzzMessage()
Dmojo_parse_message_fuzzer.cc19 if (message.data_num_bytes() < size) { in FuzzMessage()
20 message.payload_buffer()->Allocate(size - message.data_num_bytes()); in FuzzMessage()
Dmojo_fuzzer_message_dump.cc56 size_t size = message->data_num_bytes(); in Accept()
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Dwrapper_class_declaration.tmpl89 size_t data_num_bytes,
92 data, data_num_bytes, std::vector<mojo::ScopedHandle>(), output, Validate);
/external/libchrome/libchrome_tools/patch/
Dmojom_disable_trace_and_mem_dump.patch209 - MessageEntry entry(message->data(), message->data_num_bytes(),
211 + // MessageEntry entry(message->data(), message->data_num_bytes(),
/external/libchrome/mojo/public/cpp/bindings/
Dmessage.h103 size_t data_num_bytes() const { in COMPONENT_EXPORT()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dsample_service_unittest.cc289 message->data_num_bytes()); in Accept()
/external/libchrome/ipc/
Dipc_mojo_bootstrap.cc666 CHECK_LE(message->data_num_bytes(), Channel::kMaximumMessageSize); in SendMessage()