Stores information about a volume / partition inside of an open volume system.
More...
#include <tsk_vs.h>
Public Member Functions
Return address of this partition.
More...
Return UTF-8 description of partition (volume system type-specific)
More...
Return flags for partition.
More...
Return number of sectors in partition.
More...
Return entry in the table that describes this partition.
More...
Return sector offset of start of partition.
More...
Return table address that describes this partition.
More...
Reads data starting at a byte address relative to the start of a VOLUME in a volume system.
More...
Reads one or more blocks of data with an address relative to the start of a VOLUME in a volume system.
More...
Create an object from its C struct.
More...
Friends
class TskFsInfo
Detailed Description
Stores information about a volume / partition inside of an open volume system.
Constructor & Destructor Documentation
Create an object from its C struct.
- Parameters
-
a_vsPartInfo Pointer to C struct for partition. If NULL, the remaining getX() methods will be undefined.
Member Function Documentation
const char* TskVsPartInfo::getDesc
(
)
const
inline
Return UTF-8 description of partition (volume system type-specific)
- Returns
- description of partition
References TSK_VS_PART_INFO::desc.
Return number of sectors in partition.
- Returns
- number of sectors in partition
References TSK_VS_PART_INFO::len.
int16_t TskVsPartInfo::getSlotNum
(
)
const
inline
Return entry in the table that describes this partition.
- Returns
- entry in the table that describes this partition
References TSK_VS_PART_INFO::slot_num.
Return sector offset of start of partition.
- Returns
- sector offset of start of partition
References TSK_VS_PART_INFO::start.
int8_t TskVsPartInfo::getTableNum
(
)
const
inline
Return table address that describes this partition.
- Returns
- table address that describes this partition
References TSK_VS_PART_INFO::table_num.
ssize_t TskVsPartInfo::read
(
TSK_OFF_T
a_off,
char *
a_buf,
size_t
a_len
)
inline
Reads data starting at a byte address relative to the start of a VOLUME in a volume system.
See tsk_vs_part_read() for details.
- Parameters
-
a_off Byte offset to read from, relative to start of VOLUME in volume system.
a_buf Buffer to store data in
a_len Amount of data to read (in bytes)
- Returns
- Number of bytes read or -1 on error
References tsk_vs_part_read().
char *
a_buf,
size_t
a_len
)
inline
Reads one or more blocks of data with an address relative to the start of a VOLUME in a volume system.
See tsk_vs_part_read_block() for details.
- Parameters
-
a_addr Block address to start reading from, relative to start of VOLUME in 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_part_read_block().
The documentation for this class was generated from the following file: