We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size()
MetadataExt
1 parent e61d167 commit ea73491Copy full SHA for ea73491
std/src/sys/wasi/ext/fs.rs
@@ -397,6 +397,8 @@ pub trait MetadataExt {
397
fn ino(&self) -> u64;
398
/// Returns the `st_nlink` field of the internal `filestat_t`
399
fn nlink(&self) -> u64;
400
+ /// Returns the `st_size` field of the internal `filestat_t`
401
+ fn size(&self) -> u64;
402
/// Returns the `st_atim` field of the internal `filestat_t`
403
fn atim(&self) -> u64;
404
/// Returns the `st_mtim` field of the internal `filestat_t`
@@ -415,6 +417,9 @@ impl MetadataExt for fs::Metadata {
415
417
fn nlink(&self) -> u64 {
416
418
self.as_inner().as_wasi().nlink
419
}
420
+ fn size(&self) -> u64 {
421
+ self.as_inner().as_wasi().size
422
+ }
423
fn atim(&self) -> u64 {
424
self.as_inner().as_wasi().atim
425
0 commit comments