FatFS
FFOBJID::objsize
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (3/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FFOBJID::objsize
FFOBJID::objsize field
Syntax
Show:
Summary
Declaration
from
ff.h:190
FSIZE_t
objsize
;
Examples
References
from
examples
Code
Location
Referrer
FSIZE_t
objsize
;
/* Object size (valid when sclust != 0) */
ff.h:190
fp
->
obj
.
objsize
=
ld_dword
(
dj
.
dir
+
DIR_FileSize
)
;
ff.c:3869
f_open()
if
(
(
mode
&
FA_SEEKEND
)
&&
fp
->
obj
.
objsize
>
0
)
{
/* Seek to end of file if FA_OPEN_APPEND is specified */
ff.c:3896
f_open()
fp
->
fptr
=
fp
->
obj
.
objsize
;
/* Offset to seek */
ff.c:3897
f_open()
for
(
ofs
=
fp
->
obj
.
objsize
;
res
==
FR_OK
&&
ofs
>
bcs
;
ofs
-=
bcs
)
{
ff.c:3900
f_open()
remain
=
fp
->
obj
.
objsize
-
fp
->
fptr
;
ff.c:3971
f_read()
for
(
;
btw
>
0
;
btw
-=
wcnt
,
*
bw
+=
wcnt
,
wbuff
+=
wcnt
,
fp
->
fptr
+=
wcnt
,
fp
->
obj
.
objsize
=
(
fp
->
fptr
>
fp
->
obj
.
objsize
)
?
fp
->
fptr
:
fp
->
obj
.
objsize
)
{
/* Repeat until all data written */
ff.c:4076
f_write()
fp
->
fptr
<
fp
->
obj
.
objsize
&&
ff.c:4141
f_write()
st_dword
(
dir
+
DIR_FileSize
,
(
DWORD
)
fp
->
obj
.
objsize
)
;
/* Update file size */
ff.c:4230
f_sync()
if
(
ofs
>
fp
->
obj
.
objsize
&&
(
FF_FS_READONLY
||
!
(
fp
->
flag
&
FA_WRITE
)
)
)
{
/* In read-only mode, clip offset with the file size */
ff.c:4556
f_lseek()
ofs
=
fp
->
obj
.
objsize
;
ff.c:4557
f_lseek()
if
(
FF_FS_EXFAT
&&
fp
->
fptr
>
fp
->
obj
.
objsize
)
{
/* No FAT chain object needs correct objsize to generate FAT value */
ff.c:4585
f_lseek()
fp
->
obj
.
objsize
=
fp
->
fptr
;
ff.c:4586
f_lseek()
if
(
!
FF_FS_READONLY
&&
fp
->
fptr
>
fp
->
obj
.
objsize
)
{
/* Set file change flag if the file size is extended */
ff.c:4610
f_lseek()
fp
->
obj
.
objsize
=
fp
->
fptr
;
ff.c:4611
f_lseek()
if
(
fp
->
fptr
<
fp
->
obj
.
objsize
)
{
/* Process when fptr is not on the eof */
ff.c:4966
f_truncate()
fp
->
obj
.
objsize
=
fp
->
fptr
;
/* Set file size to current read/write point */
ff.c:4979
f_truncate()
if
(
fsz
==
0
||
fp
->
obj
.
objsize
!=
0
||
!
(
fp
->
flag
&
FA_WRITE
)
)
LEAVE_FF
(
fs
,
FR_DENIED
)
;
ff.c:5619
f_expand()
fp
->
obj
.
objsize
=
fsz
;
ff.c:5680
f_expand()
if
(
(
res
=
f_lseek
(
file
,
f_size
(
file
)
)
)
!=
FR_OK
)
{
vfs_fat.c:444
vfs_fat_write()
off_t
size
=
f_size
(
file
)
;
vfs_fat.c:642
vfs_fat_lseek()
ESP_LOGD
(
TAG
,
"%s: offset=%ld, filesize:=%"
PRIu32
,
__func__
,
new_pos
,
f_size
(
file
)
)
;
vfs_fat.c:652
vfs_fat_lseek()
st
->
st_size
=
f_size
(
file
)
;
vfs_fat.c:668
vfs_fat_fstat()
size_t
size_left
=
f_size
(
pf1
)
;
vfs_fat.c:824
vfs_fat_link()
FSIZE_t
sz
=
(
FSIZE_t
)
f_size
(
file
)
;
// current file size (end of file position)
vfs_fat.c:1162
vfs_fat_truncate()
FSIZE_t
sz
=
(
FSIZE_t
)
f_size
(
file
)
;
// current file size (end of file position)
vfs_fat.c:1271
vfs_fat_ftruncate()
fsz
=
f_size
(
fp
)
;
vfs_fat.c:1460
test_contiguous_file()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FFOBJID::objsize
is written by 5 functions and is read by 14 functions:
f_open()
f_write()
f_lseek()
f_truncate()
f_expand()
All items filtered out
FFOBJID::objsize
f_open()
f_read()
f_write()
f_sync()
f_lseek()
f_truncate()
f_expand()
vfs_fat_write()
vfs_fat_lseek()
vfs_fat_fstat()
vfs_fat_link()
vfs_fat_truncate()
vfs_fat_ftruncate()
test_contiguous_file()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out