Stores information about an open volume system.
More...
#include <tsk_vs.h>
Public Member Functions
Closes an open volume system.
More...
Return size of volume system blocks in bytes.
More...
Get a reference to the parent image object.
More...
Return the byte offset where volume system starts in disk image.
More...
Get reference to a volume in the volume system.
More...
Return number of partitions.
More...
Return type of volume system / media management.
More...
Open a disk image and process the media management system data.
More...
Reads one or more blocks of data with an address relative to the start of the volume system.
More...
Walk a range of partitions and pass the data to a callback function.
More...
Static Public Member Functions
Print the supported volume system type names to an open handle.
More...
Return the supported volume system types.
More...
Return the string description of a partition type ID.
More...
Parse a string with the volume system type and return its internal ID.
More...
Return the string name of a partition type ID.
More...
Detailed Description
Stores information about an open volume system.
To use this object, open() should be called first.
Member Function Documentation
void TskVsInfo::close
(
)
inline
unsigned int TskVsInfo::getBlockSize
(
)
const
inline
Get a reference to the parent image object.
- Returns
- Pointer to object or NULL on error. Caller is responsible for freeing object.
References TSK_VS_INFO::img_info.
Return the byte offset where volume system starts in disk image.
- Returns
- byte offset
References TSK_VS_INFO::offset.
Get reference to a volume in the volume system.
See tsk_vs_part_get() for details.
- Parameters
-
a_idx Index for volume to return (0-based)
- Returns
- Pointer to partition or NULL on error. Caller is responsible for freeing object.
References tsk_vs_part_get().
Return type of volume system / media management.
- Returns
- type of volume system / media management
References TSK_VS_INFO::vstype.
Open a disk image and process the media management system data.
See tsk_vs_open() for details.
- Parameters
-
a_imgInfo The opened disk image.
a_offset Byte offset in the disk image to start analyzing from.
a_type Type of volume system (including auto detect)
- Returns
- 1 on error and 0 on success.
References tsk_vs_open().
char *
a_buf,
size_t
a_len
)
inline
Reads one or more blocks of data with an address relative to the start of the volume system.
See tsk_vs_read_block() for details.
- Parameters
-
a_addr Sector address to read from, relative to start of VOLUME SYSTEM.
a_buf Buffer to store data in
a_len Amount of data to read (in bytes - must be a multiple of block_size)
- Returns
- Number of bytes read or -1 on error
References tsk_vs_read_block().
static void TskVsInfo::typePrint
(
FILE *
a_hFile )
inlinestatic
Return the string description of a partition type ID.
See tsk_vs_type_todesc() for details.
- Parameters
-
a_type Volume system type
- Returns
- description of type or NULL on error
References tsk_vs_type_todesc().
Parse a string with the volume system type and return its internal ID.
See tsk_vs_type_toid() for details.
- Parameters
-
a_str String to parse.
- Returns
- ID of string (or unsupported if the name is unknown)
References tsk_vs_type_toid().
uint8_t TskVsInfo::vsPartWalk
(
TSK_PNUM_T
a_start,
void *
a_ptr
)
inline
Walk a range of partitions and pass the data to a callback function.
See tsk_vs_part_walk() for details.
- Parameters
-
a_start Address of first partition to walk from.
a_last Address of last partition to walk to.
a_flags Flags that are used to identify which of the partitions in the range should be returned (if 0, all partitions will be returned).
a_action Callback action to call for each partition.
a_ptr Pointer to data that will be passed to callback.
- Returns
- 1 on error and 0 on success
References tsk_vs_part_walk().
The documentation for this class was generated from the following file: