Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
shell
platform
fuchsia
dart-pkg
zircon_ffi
basic_types.h
Go to the documentation of this file.
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
#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_FFI_BASIC_TYPES_H_
6
#define FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_FFI_BASIC_TYPES_H_
7
8
#include "
macros.h
"
9
10
#include <stdint.h>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
typedef
struct
zircon_dart_byte_array_t
{
17
uint8_t*
data
;
18
uint32_t
length
;
19
}
zircon_dart_byte_array_t
;
20
21
ZIRCON_FFI_EXPORT
zircon_dart_byte_array_t
*
zircon_dart_byte_array_create
(
22
uint32_t size);
23
24
ZIRCON_FFI_EXPORT
void
zircon_dart_byte_array_set_value
(
25
zircon_dart_byte_array_t
* arr,
26
uint32_t index,
27
uint8_t value);
28
29
ZIRCON_FFI_EXPORT
void
zircon_dart_byte_array_free
(
30
zircon_dart_byte_array_t
* arr);
31
32
#ifdef __cplusplus
33
}
// extern "C"
34
#endif
35
36
#endif
// FLUTTER_SHELL_PLATFORM_FUCHSIA_DART_PKG_ZIRCON_FFI_BASIC_TYPES_H_
zircon_dart_byte_array_free
ZIRCON_FFI_EXPORT void zircon_dart_byte_array_free(zircon_dart_byte_array_t *arr)
Definition
basic_types.cc:28
zircon_dart_byte_array_create
ZIRCON_FFI_EXPORT zircon_dart_byte_array_t * zircon_dart_byte_array_create(uint32_t size)
Definition
basic_types.cc:12
zircon_dart_byte_array_set_value
ZIRCON_FFI_EXPORT void zircon_dart_byte_array_set_value(zircon_dart_byte_array_t *arr, uint32_t index, uint8_t value)
Definition
basic_types.cc:20
ZIRCON_FFI_EXPORT
#define ZIRCON_FFI_EXPORT
Definition
macros.h:8
zircon_dart_byte_array_t
Definition
basic_types.h:16
zircon_dart_byte_array_t::length
uint32_t length
Definition
basic_types.h:18
zircon_dart_byte_array_t::data
uint8_t * data
Definition
basic_types.h:17
macros.h
Generated on Fri Apr 26 2024 06:14:27 for Flutter Engine by
1.9.8