rebuild file struct again
This commit is contained in:
@@ -219,13 +219,13 @@ namespace StgSharp.Data.FileIO
|
||||
{
|
||||
get
|
||||
{
|
||||
byte[] bytes = new byte[15 * 16];
|
||||
byte[] bytes = new byte[(StgSharp.ssdSegmentLength - 1)* 16];
|
||||
fixed (byte* bptr = segmentData.Data)
|
||||
{
|
||||
Marshal.Copy(
|
||||
source: (IntPtr)bptr,
|
||||
destination: bytes,
|
||||
256, 15 * 16);
|
||||
(StgSharp.ssdSegmentLength) * 16, (StgSharp.ssdSegmentLength - 1) * 16);
|
||||
}
|
||||
return Encoding.UTF8.GetString(bytes);
|
||||
}
|
||||
@@ -237,8 +237,8 @@ namespace StgSharp.Data.FileIO
|
||||
Marshal.Copy(
|
||||
source: namecode,
|
||||
startIndex: 0,
|
||||
destination: (IntPtr)(bptr + 256),
|
||||
length: 15 * 16);
|
||||
destination: (IntPtr)(bptr + (StgSharp.ssdSegmentLength) * 16),
|
||||
length: (StgSharp.ssdSegmentLength - 1) * 16);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user