VSF Documented
|
Functions | |
STATIC void | __check_fd_is_open (const mp_obj_file_t *self) |
STATIC int | __file_getfd (const mp_obj_file_t *self) |
STATIC void | __file_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) |
STATIC mp_uint_t | __file_read (mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) |
STATIC mp_uint_t | __file_write (mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) |
STATIC mp_obj_t | __file_fileno (mp_obj_t self_in) |
STATIC | MP_DEFINE_CONST_FUN_OBJ_1 (__file_fileno_obj, __file_fileno) |
STATIC mp_uint_t | __file_ioctl (mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) |
STATIC | MP_DEFINE_CONST_DICT (__file_locals_dict, __file_locals_dict_table) |
MP_DEFINE_CONST_OBJ_TYPE (mp_type_fileio, MP_QSTR_FileIO, MP_TYPE_FLAG_ITER_IS_STREAM, print, __file_print, protocol, &__fileio_stream_p, locals_dict, &__file_locals_dict) | |
MP_DEFINE_CONST_OBJ_TYPE (mp_type_textio, MP_QSTR_TextIOWrapper, MP_TYPE_FLAG_ITER_IS_STREAM, print, __file_print, protocol, &__textio_stream_p, locals_dict, &__file_locals_dict) | |
mp_import_stat_t | mp_import_stat (const char *path) |
mp_obj_t | mp_builtin_open (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) |
MP_DEFINE_CONST_FUN_OBJ_KW (mp_builtin_open_obj, 0, mp_builtin_open) | |
mp_obj_t | mp_vfs_open (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) |
vsf_pyal_arg_t | vsf_pyal_tupleobj_getarg (vsf_pyal_obj_t self_in, int idx) |
int | vsf_pyal_tupleobj_getnum (vsf_pyal_obj_t self_in) |
size_t | vsf_pyal_listobj_getnum (vsf_pyal_obj_t self_in) |
vsf_pyal_obj_t | vsf_pyal_listobj_getarg (vsf_pyal_obj_t self_in, int idx) |
Variables | |
STATIC const mp_rom_map_elem_t | __file_locals_dict_table [] |
STATIC const mp_stream_p_t | __fileio_stream_p |
STATIC const mp_stream_p_t | __textio_stream_p |
const mp_obj_file_t | mp_sys_stdin_obj |
const mp_obj_file_t | mp_sys_stdout_obj |
const mp_obj_file_t | mp_sys_stderr_obj |
STATIC void __check_fd_is_open | ( | const mp_obj_file_t * | self | ) |
STATIC int __file_getfd | ( | const mp_obj_file_t * | self | ) |
STATIC void __file_print | ( | const mp_print_t * | print, |
mp_obj_t | self_in, | ||
mp_print_kind_t | kind | ||
) |
STATIC mp_obj_t __file_fileno | ( | mp_obj_t | self_in | ) |
STATIC MP_DEFINE_CONST_FUN_OBJ_1 | ( | __file_fileno_obj | , |
__file_fileno | |||
) |
STATIC MP_DEFINE_CONST_DICT | ( | __file_locals_dict | , |
__file_locals_dict_table | |||
) |
MP_DEFINE_CONST_OBJ_TYPE | ( | mp_type_fileio | , |
MP_QSTR_FileIO | , | ||
MP_TYPE_FLAG_ITER_IS_STREAM | , | ||
, | |||
__file_print | , | ||
protocol | , | ||
& | __fileio_stream_p, | ||
locals_dict | , | ||
& | __file_locals_dict | ||
) |
MP_DEFINE_CONST_OBJ_TYPE | ( | mp_type_textio | , |
MP_QSTR_TextIOWrapper | , | ||
MP_TYPE_FLAG_ITER_IS_STREAM | , | ||
, | |||
__file_print | , | ||
protocol | , | ||
& | __textio_stream_p, | ||
locals_dict | , | ||
& | __file_locals_dict | ||
) |
mp_import_stat_t mp_import_stat | ( | const char * | path | ) |
mp_obj_t mp_builtin_open | ( | size_t | n_args, |
const mp_obj_t * | pos_args, | ||
mp_map_t * | kw_args | ||
) |
MP_DEFINE_CONST_FUN_OBJ_KW | ( | mp_builtin_open_obj | , |
0 | , | ||
mp_builtin_open | |||
) |
mp_obj_t mp_vfs_open | ( | size_t | n_args, |
const mp_obj_t * | pos_args, | ||
mp_map_t * | kw_args | ||
) |
vsf_pyal_arg_t vsf_pyal_tupleobj_getarg | ( | vsf_pyal_obj_t | self_in, |
int | idx | ||
) |
int vsf_pyal_tupleobj_getnum | ( | vsf_pyal_obj_t | self_in | ) |
size_t vsf_pyal_listobj_getnum | ( | vsf_pyal_obj_t | self_in | ) |
vsf_pyal_obj_t vsf_pyal_listobj_getarg | ( | vsf_pyal_obj_t | self_in, |
int | idx | ||
) |
STATIC const mp_rom_map_elem_t __file_locals_dict_table[] |
STATIC const mp_stream_p_t __fileio_stream_p |
STATIC const mp_stream_p_t __textio_stream_p |
const mp_obj_file_t mp_sys_stdin_obj |
const mp_obj_file_t mp_sys_stdout_obj |
const mp_obj_file_t mp_sys_stderr_obj |