The Sleuth Kit
4.12.1
|
Stores information about a file system block. More...
#include <tsk_fs.h>
Public Member Functions | |
TSK_DADDR_T | getAddr () const |
Get address of block. More... | |
const char * | getBuf () const |
Get buffer with block data (of size TSK_FS_INFO::block_size) More... | |
TSK_FS_BLOCK_FLAG_ENUM | getFlags () const |
Get flags for block (alloc or unalloc) More... | |
uint8_t | open (TskFsInfo *a_fs, TSK_DADDR_T a_addr) |
Open a block (use only if created with default constructor). More... | |
TskFsBlock (const TSK_FS_BLOCK *a_fsBlock) | |
construct a TskFsBlock using a TSK_FS_BLOCK structure More... | |
TskFsBlock () | |
default constructor to construct a TskFsBlock. More... | |
~TskFsBlock () | |
Free the memory associated with the TSK_FS_BLOCK structure. More... | |
Stores information about a file system block.
Must be created by either allocating an empty block and opening one or by passing in a TSK_FS_BLOCK struct. If NULL is passed to the constructor and open() is not called, the other methods return undefined data. See TSK_FS_BLOCK for more details.
|
inline |
construct a TskFsBlock using a TSK_FS_BLOCK structure
a_fsBlock | a pointer of TSK_FS_BLOCK. If NULL, the getX() methods return undefined data. |
|
inline |
default constructor to construct a TskFsBlock.
Must call open() before using other methods.
|
inline |
Free the memory associated with the TSK_FS_BLOCK structure.
See tsk_fs_block_free() for details
References tsk_fs_block_free().
|
inline |
|
inline |
Get buffer with block data (of size TSK_FS_INFO::block_size)
References TSK_FS_BLOCK::buf.
|
inline |
Get flags for block (alloc or unalloc)
|
inline |
Open a block (use only if created with default constructor).
a_fs | The file system to read the block from. |
a_addr | The file system address to read. |
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.