Benign repos Download

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

imports flutter/shell/platform/android/platform_view_android_delegate/platform_view_android_delegate.h lines 1–12
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 …
English function-word token "for" lines 19–23
19:4…
20 buffer[(*position)++] = attributes.size();
21 for (const auto& attribute : attributes) {
22 buffer[(*position)++] = attribute->start;
23 buffer …
English function-word token "and" lines 197–200
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 …
Copies bytes with native memcpy lines 201–206
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 …
English function-word token "with" lines 293–296
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 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.