platform_view_android_delegate.cc
imports flutter/shell/platform/android/platform_view_android_delegate/platform_view_android_delegate.hCopies bytes with native memcpy
SHA-256b798f29f9ee8d47d343f95515389172ed118bcb69558131ef2cd647e1b9a4c0c
MaleculeH(Db)Md(In)
Evidence
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/shell/platform/android/platform_view_android_delegate/platform_view_android_delegate.h"
6
7#include <utility>
8
9namespace flutter {
10namespace {
11void putStringAttributesIntoBuffer(
12 const StringAttributes& attribut …
19:4…
20 buffer[(*position)++] = attributes.size();
21 for (const auto& attribute : attributes) {
22 buffer[(*position)++] = attribute->start;
23 buffer …
197:29… de, make sure you update kBytesPerNode
198 // and/or kBytesPerChild above to match the number of values you are
199 // sending.
200 const flu …
201:38… .id;
202 int64_t flags = flagsToInt64(node.flags);
203 std::memcpy(&buffer_int32[position], &flags, 8);
204 position += 2;
205 buffer_int32[position++] = node.actions;
206 buffer_int32[pos …
293:14… g NewDirectByteBuffer in API level 22 and below with a size of zero
294 // will cause a JNI crash.
295 if (!actions_buffer.empty()) {
296 jni_faca …