StructStat
class StructStat
kotlin.Any | |
↳ | android.system.StructStat |
File information returned by Os.fstat
, Os.lstat
, and Os.stat
. Corresponds to C's struct stat
from <stat.h>
.
Summary
Public constructors | |
---|---|
StructStat(st_dev: Long, st_ino: Long, st_mode: Int, st_nlink: Long, st_uid: Int, st_gid: Int, st_rdev: Long, st_size: Long, st_atim: StructTimespec!, st_mtim: StructTimespec!, st_ctim: StructTimespec!, st_blksize: Long, st_blocks: Long) Constructs an instance with the given field values. |
|
StructStat(st_dev: Long, st_ino: Long, st_mode: Int, st_nlink: Long, st_uid: Int, st_gid: Int, st_rdev: Long, st_size: Long, st_atime: Long, st_mtime: Long, st_ctime: Long, st_blksize: Long, st_blocks: Long) Constructs an instance with the given field values. |
Public methods | |
---|---|
String |
toString() |
Properties | |
---|---|
StructTimespec! |
StructTimespec with time of last access. |
Long |
Seconds part of time of last access. |
Long |
A file system-specific preferred I/O block size for this object. |
Long |
Number of blocks allocated for this object. |
StructTimespec! |
StructTimespec with time of last status change. |
Long |
Seconds part of time of last status change |
Long |
Device ID of device containing file. |
Int |
Group ID of file. |
Long |
File serial number (inode). |
Int |
Mode (permissions) of file. |
StructTimespec! |
StructTimespec with time of last modification. |
Long |
Seconds part of time of last data modification. |
Long |
Number of hard links to the file. |
Long |
Device ID (if file is character or block special). |
Long |
For regular files, the file size in bytes. |
Int |
User ID of file. |
Public constructors
StructStat
StructStat(
st_dev: Long,
st_ino: Long,
st_mode: Int,
st_nlink: Long,
st_uid: Int,
st_gid: Int,
st_rdev: Long,
st_size: Long,
st_atim: StructTimespec!,
st_mtim: StructTimespec!,
st_ctim: StructTimespec!,
st_blksize: Long,
st_blocks: Long)
Constructs an instance with the given field values.
StructStat
StructStat(
st_dev: Long,
st_ino: Long,
st_mode: Int,
st_nlink: Long,
st_uid: Int,
st_gid: Int,
st_rdev: Long,
st_size: Long,
st_atime: Long,
st_mtime: Long,
st_ctime: Long,
st_blksize: Long,
st_blocks: Long)
Constructs an instance with the given field values.
Public methods
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
Properties
st_blksize
val st_blksize: Long
A file system-specific preferred I/O block size for this object. For some file system types, this may vary from file to file.
st_ctim
val st_ctim: StructTimespec!
StructTimespec with time of last status change.
st_mtim
val st_mtim: StructTimespec!
StructTimespec with time of last modification.
st_size
val st_size: Long
For regular files, the file size in bytes. For symbolic links, the length in bytes of the pathname contained in the symbolic link. For a shared memory object, the length in bytes. For a typed memory object, the length in bytes. For other file types, the use of this field is unspecified.