The Sleuth Kit
4.11.0
|
Stores information about an image that is open and being analyzed. More...
#include <tsk_img.h>
Public Member Functions | |
unsigned int | getSectorSize () const |
Returns the sector size of the disk. More... | |
TSK_OFF_T | getSize () const |
Returns the size of the image. More... | |
TSK_IMG_TYPE_ENUM | getType () const |
returns the image format type. More... | |
uint8_t | open (const TSK_TCHAR *a_image, TSK_IMG_TYPE_ENUM a_type, unsigned int a_ssize) |
Opens a single (non-split) disk image file so that it can be read. More... | |
uint8_t | open (int a_num_img, const TSK_TCHAR *const a_images[], TSK_IMG_TYPE_ENUM a_type, unsigned int a_ssize) |
Opens one or more disk image files so that they can be read. More... | |
ssize_t | read (TSK_OFF_T a_off, char *a_buf, size_t a_len) |
Reads data from an open disk image. More... | |
TskImgInfo (TSK_IMG_INFO *a_imgInfo) | |
Static Public Member Functions | |
static void | typePrint (FILE *a_file) |
Prints the name and description of the supported image types to a handle. More... | |
static TSK_IMG_TYPE_ENUM | typeSupported () |
Returns the supported file format types. More... | |
static const char * | typeToDesc (TSK_IMG_TYPE_ENUM a_type) |
Returns the description of an image format type, given its type ID. More... | |
static TSK_IMG_TYPE_ENUM | typeToId (const TSK_TCHAR *a_str) |
Parses a string that specifies an image format to determine the associated type ID. More... | |
static const char * | typeToName (TSK_IMG_TYPE_ENUM a_type) |
Returns the name of an image format type, given its type ID. More... | |
Friends | |
class | TskFsInfo |
class | TskVsInfo |
Stores information about an image that is open and being analyzed.
To use this object, open() should be called first. Otherwise, the get() methods will return undefined values.
|
inline |
Returns the sector size of the disk.
References TSK_IMG_INFO::sector_size.
|
inline |
|
inline |
|
inline |
Opens a single (non-split) disk image file so that it can be read.
See tsk_img_open_sing() for more details.
a_image | The path to the image file |
a_type | The disk image type (can be autodetection) |
a_ssize | Size of device sector in bytes (or 0 for default) |
References tsk_img_open_sing().
|
inline |
Opens one or more disk image files so that they can be read.
e UTF8, then consider See tsk_img_open() for more details.
a_num_img | The number of images to open (will be > 1 for split images). |
a_images | The path to the image files (the number of files must be equal to num_img and they must be in a sorted order) |
a_type | The disk image type (can be autodetection) |
a_ssize | Size of device sector in bytes (or 0 for default) |
References tsk_img_open().
|
inline |
Reads data from an open disk image.
a_off | Byte offset to start reading from |
a_buf | Buffer to read into |
a_len | Number of bytes to read into buffer |
References tsk_img_read().
|
inlinestatic |
Prints the name and description of the supported image types to a handle.
This is used by the TSK command line tools to print the supported types to the console.
a_file | Handle to print names and descriptions to. |
References tsk_img_type_print().
|
inlinestatic |
Returns the supported file format types.
References tsk_img_type_supported().
|
inlinestatic |
Returns the description of an image format type, given its type ID.
a_type | ID of image type |
References tsk_img_type_todesc().
|
inlinestatic |
Parses a string that specifies an image format to determine the associated type ID.
This is used by the TSK command line tools to parse the type given on the command line.
a_str | String of image format type |
References tsk_img_type_toid().
|
inlinestatic |
Returns the name of an image format type, given its type ID.
a_type | ID of image type |
References tsk_img_type_toname().
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.