Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
file.cc File Reference
#include "bin/file.h"
#include <stdio.h>
#include "bin/builtin.h"
#include "bin/dartutils.h"
#include "bin/io_buffer.h"
#include "bin/namespace.h"
#include "bin/utils.h"
#include "include/bin/dart_io_api.h"
#include "include/dart_api.h"
#include "include/dart_tools_api.h"
#include "platform/globals.h"

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define IS_SEPARATOR(c)   ((c) == '/' || (c) == 0)
 
#define CHECK_CAN_INCREMENT(i)
 

Functions

static bool dart::bin::IsFile (Dart_Handle file_obj)
 
static File * dart::bin::GetFile (Dart_NativeArguments args)
 
static void dart::bin::SetFile (Dart_Handle dart_this, intptr_t file_pointer)
 
void FUNCTION_NAME() dart::bin::File_GetPointer (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_GetFD (Dart_NativeArguments args)
 
static void dart::bin::ReleaseFile (void *isolate_callback_data, void *peer)
 
void FUNCTION_NAME() dart::bin::File_SetPointer (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Open (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Exists (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Close (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_ReadByte (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_WriteByte (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Read (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_ReadInto (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_WriteFrom (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Position (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_SetPosition (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Truncate (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Length (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_LengthFromPath (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_LastModified (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_SetLastModified (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_LastAccessed (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_SetLastAccessed (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Flush (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Lock (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Create (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_CreateLink (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_CreatePipe (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_LinkTarget (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Delete (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_DeleteLink (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Rename (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_RenameLink (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Copy (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_ResolveSymbolicLinks (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_OpenStdio (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_GetStdioHandleType (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_GetType (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_Stat (Dart_NativeArguments args)
 
void FUNCTION_NAME() dart::bin::File_AreIdentical (Dart_NativeArguments args)
 
static int64_t dart::bin::CObjectInt32OrInt64ToInt64 (CObject *cobject)
 
static File * dart::bin::CObjectToFilePointer (CObject *cobject)
 
static Namespace * dart::bin::CObjectToNamespacePointer (CObject *cobject)
 
static int dart::bin::SizeInBytes (Dart_TypedData_Type type)
 

Variables

static constexpr int dart::bin::kFileNativeFieldIndex = 0
 

Macro Definition Documentation

◆ CHECK_CAN_INCREMENT

#define CHECK_CAN_INCREMENT (   i)
Value:
if ((i) + 1 >= outlen) { \
return -1; \
}

Definition at line 650 of file file.cc.

◆ IS_SEPARATOR

#define IS_SEPARATOR (   c)    ((c) == '/' || (c) == 0)

Definition at line 646 of file file.cc.