Stores information about a file attribute. More...
#include <tsk_fs.h>
get number of bytes that are allocated in all clusters of non-resident run
(will be larger than size - does not include skiplen). More...
get number of bytes (starting from offset 0) that have data
(including FILLER) saved for them (smaller then or equal to size). More...
Stores information about a file attribute.
File attributes store data for a file. Most files have at least one attribute that stores the file content. See TSK_FS_ATTR for details on attributes.
construct a TskFsAttribute object
get number of bytes that are allocated in all clusters of non-resident run
(will be larger than size - does not include skiplen).
This is defined when the attribute is created and used to determine slack space.
References TSK_FS_ATTR::allocsize, and TSK_FS_ATTR::nrd.
Pointer to buffer with resident data.
Only getSize() bytes will be valid.
References TSK_FS_ATTR::buf, and TSK_FS_ATTR::rd.
get size of compression units (needed only if NTFS file is compressed)
References TSK_FS_ATTR::compsize, and TSK_FS_ATTR::nrd.
get number of bytes (starting from offset 0) that have data
(including FILLER) saved for them (smaller then or equal to size).
This is defined when the attribute is created.
References TSK_FS_ATTR::initsize, and TSK_FS_ATTR::nrd.
get the attributes's name (in UTF-8).
References TSK_FS_ATTR::name.
get a run for a non-resident attribute.
It's caller's responsibility to free memory of TskFsAttrRun
References TSK_FS_ATTR_RUN::next, TSK_FS_ATTR::nrd, and TSK_FS_ATTR::run.
gets the number of runs in a non-resident attribute.
References TSK_FS_ATTR_RUN::next, TSK_FS_ATTR::nrd, and TSK_FS_ATTR::run.
get size in bytes of attribute (does not include skiplen for non-resident)
References TSK_FS_ATTR::size.
get number of initial bytes in run to skip before content begins.
The size field does not include this length.
References TSK_FS_ATTR::nrd, and TSK_FS_ATTR::skiplen.
Read the contents of this attribute using a typical read() type interface.
0s are returned for missing runs.
See tsk_fs_attr_read() for details
References tsk_fs_attr_read().
Process an attribute and call a callback function with its contents.
The callback will be called with chunks of data that are fs->block_size or less. The address given in the callback will be correct only for raw files (when the raw file contents were stored in the block). For compressed and sparse attributes, the address may be zero.
See tsk_fs_attr_walk() for details
References tsk_fs_attr_walk().
Copyright © 2007-2020 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.