[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sleuthkit-developers
Subject:    Re: [sleuthkit-developers] TSK_OFF_T and TSK_DADDR_T
From:       Brian Carrier <carrier () sleuthkit ! org>
Date:       2013-08-29 13:24:29
Message-ID: E5554F94-3696-439D-B6E9-051EE60FDCF7 () sleuthkit ! org
[Download RAW message or body]

I use TSK_OFF_T for bye offsets and lengths and TSK_DADDR_T for block/sector \
addresses. In theory, there is little difference and you can use them interchangeably \
(they are both 64-bit integers).   Over the years, I have found it very useful to be \
very clear about which variables are storing offsets in bytes and which are in \
sectors/blocks because it is easy to get them confused. 

To be honest, I forget why TSK_OFF_T is signed and not unsigned like TSK_DADDR_T. I \
thought it was because it was being returned by the various _read() methods and they \
need to return -1. But, ssize_t is returned there (though I forget if TSK_OFF_T was \
once returned from there...).  Is this causing a problem, or just curious?



On Aug 29, 2013, at 1:11 AM, Robert James <srobertjames@gmail.com> wrote:

> What is the difference in intention between TSK_OFF_T and TSK_DADDR_T?
> Why is TSK_OFF_T signed?
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> sleuthkit-developers mailing list
> sleuthkit-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
sleuthkit-developers mailing list
sleuthkit-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic