#include <native_type.h>
Definition at line 458 of file native_type.h.
◆ NativeFunctionType()
Definition at line 460 of file native_type.h.
const NativeTypes & argument_types() const
const NativeType & return_type() const
intptr_t variadic_arguments_index() const
◆ argument_types()
const NativeTypes & dart::compiler::ffi::NativeFunctionType::argument_types |
( |
| ) |
const |
|
inline |
◆ FromRepresentations()
Definition at line 637 of file native_type.cc.
640 {
644 *new (zone) ZoneGrowableArray<const compiler::ffi::NativeType*>(
645 zone, argument_representations.length());
646 for (intptr_t i = 0; i < argument_representations.length(); i++) {
648 zone, argument_representations.At(i)));
649 }
651}
NativeFunctionType(const NativeTypes &argument_types, const NativeType &return_type, intptr_t variadic_arguments_index=kNoVariadicArguments)
static NativePrimitiveType & FromRepresentation(Zone *zone, Representation rep)
◆ PrintTo()
void dart::compiler::ffi::NativeFunctionType::PrintTo |
( |
BaseTextBuffer * |
f | ) |
const |
Definition at line 797 of file native_type.cc.
797 {
799 for (intptr_t i = 0; i < argument_types_.
length(); i++) {
800 if (i > 0) {
802 }
803 if (i == variadic_arguments_index_) {
804 f->AddString(
"varargs: ");
805 }
806 argument_types_[i]->PrintTo(f);
807 }
808 f->AddString(
") => ");
810}
virtual void PrintTo(BaseTextBuffer *f, bool multi_line=false, bool verbose=true) const
◆ return_type()
const NativeType & dart::compiler::ffi::NativeFunctionType::return_type |
( |
| ) |
const |
|
inline |
◆ ToCString() [1/2]
const char * dart::compiler::ffi::NativeFunctionType::ToCString |
( |
| ) |
const |
Definition at line 792 of file native_type.cc.
792 {
794}
static Thread * Current()
const char * ToCString() const
◆ ToCString() [2/2]
const char * dart::compiler::ffi::NativeFunctionType::ToCString |
( |
Zone * |
zone | ) |
const |
Definition at line 727 of file native_type.cc.
727 {
728 ZoneTextBuffer textBuffer(zone);
730 return textBuffer.buffer();
731}
void PrintTo(BaseTextBuffer *f) const
◆ variadic_arguments_index()
intptr_t dart::compiler::ffi::NativeFunctionType::variadic_arguments_index |
( |
| ) |
const |
|
inline |
Definition at line 476 of file native_type.h.
476 {
477 return variadic_arguments_index_;
478 }
◆ kNoVariadicArguments
constexpr intptr_t dart::compiler::ffi::NativeFunctionType::kNoVariadicArguments = INTPTR_MAX |
|
staticconstexpr |
The documentation for this class was generated from the following files: