1 /*
2 * The Sleuth Kit
3 *
4 * Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
5 * Copyright (c) 2010-2012 Basis Technology Corporation. All Rights
6 * reserved.
7 *
8 * This software is distributed under the Common Public License 1.0
9 */
10
11 #include "UnallocRun.h"
12
13 /**
14 * Stores mapping between the unallocated images that are used for carving and
15 * the original images.
16 * @param a_volId Volume ID in original image that sector run is located in.
17 * @param a_unallocImgId ID of the unallocated image
18 * @param a_unallocStart Starting sector in unallocated image
19 * @param a_length Number of sectors in run
20 * @param a_allocStart Starting sector in original image
21 */
UnallocRun(int a_volId,int a_unallocImgId,uint64_t a_unallocStart,uint64_t a_length,uint64_t a_allocStart)22 UnallocRun::UnallocRun(int a_volId, int a_unallocImgId, uint64_t a_unallocStart,
23 uint64_t a_length, uint64_t a_allocStart) :
24 m_volId(a_volId),
25 m_unallocImgId(a_unallocImgId),
26 m_unallocStart(a_unallocStart),
27 m_length(a_length),
28 m_origStart(a_allocStart)
29 {
30 }
31
~UnallocRun()32 UnallocRun::~UnallocRun()
33 {
34 }
35
getVolId() const36 int UnallocRun::getVolId() const
37 {
38 return m_volId;
39 }
40
getUnallocImgId() const41 int UnallocRun::getUnallocImgId() const
42 {
43 return m_unallocImgId;
44 }
45
getUnallocStart() const46 uint64_t UnallocRun::getUnallocStart() const
47 {
48 return m_unallocStart;
49 }
50
getLength() const51 uint64_t UnallocRun::getLength() const
52 {
53 return m_length;
54 }
55
getAllocStart() const56 uint64_t UnallocRun::getAllocStart() const
57 {
58 return m_origStart;
59 }
60