Internal
Readonly
[toReadonly
bufferReadonly
byteReadonly
byteProtected
__For future use
For future use
For future use
Protected
Internal
__Padding up to 128 bytes. This ensures there is enough room for expansion without breaking the ABI.
Time of last access, since epoch
Time of file creation, since epoch
The time the inode was changed.
This is automatically updated whenever changed are made using update()
.
The id of the group that owns the file
Inode number
Unix-style file mode (e.g. 0o644) that includes the item type
Time of last modification, since epoch
Number of hard links
Size of the item in bytes. For directories/symlinks, this is normally the size of the struct that represents the item.
The id of the user that owns the file
The "version" of the inode/data. Unrelated to the inode format!
Gets the BigInt64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the BigUint64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Float16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be read.
Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
The place in the buffer at which the value should be retrieved.
Stores a BigInt64 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores a BigUint64 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Float16 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Float32 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Float64 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Int16 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Int32 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Int8 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Stores an Uint16 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Uint32 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Optional
littleEndian: booleanIf false or undefined, a big-endian value should be written.
Stores an Uint8 value at the specified byte offset from the start of the view.
The place in the buffer at which the value should be set.
The value to set.
Handy function that converts the Inode to a Node Stats object.
Returns a string representation of an object.
Updates the Inode using information from the stats object. Used by file systems at sync time, e.g.:
Optional
data: Partial<Readonly<InodeLike>>whether any changes have occurred.
Generic inode definition that can easily be serialized.