コード例 #1
0
 public StreamRange(StreamRef stream, ViewCache.CacheEntry cacheEntry, long offset, uint size)
 {
     Stream     = stream;
     CacheEntry = cacheEntry;
     View       = null;
     Offset     = offset;
     Size       = size;
     Buffer     = cacheEntry.Buffer;
     IsDisposed = false;
     unchecked {
         Pointer  = cacheEntry.Pointer + cacheEntry.PointerOffset;
         Pointer += (offset - cacheEntry.Offset);
     }
 }
コード例 #2
0
 public StreamRange(StreamRef stream, MemoryMappedViewAccessor view, long offset, uint size, long actualOffset, long actualSize)
 {
     Stream     = stream;
     View       = view;
     CacheEntry = default(ViewCache.CacheEntry);
     Offset     = offset;
     Size       = size;
     Buffer     = view.GetSafeBuffer();
     Pointer    = null;
     Buffer.AcquirePointer(ref Pointer);
     IsDisposed = false;
     unchecked {
         Pointer += view.GetPointerOffset();
         Pointer += (offset - actualOffset);
     }
 }
コード例 #3
0
ファイル: StreamRef.cs プロジェクト: sq/DataMangler
 public StreamRange(StreamRef stream, ViewCache.CacheEntry cacheEntry, long offset, uint size)
 {
     Stream = stream;
     CacheEntry = cacheEntry;
     View = null;
     Offset = offset;
     Size = size;
     Buffer = cacheEntry.Buffer;
     IsDisposed = false;
     unchecked {
         Pointer = cacheEntry.Pointer + cacheEntry.PointerOffset;
         Pointer += (offset - cacheEntry.Offset);
     }
 }
コード例 #4
0
ファイル: StreamRef.cs プロジェクト: sq/DataMangler
 public StreamRange(StreamRef stream, MemoryMappedViewAccessor view, long offset, uint size, long actualOffset, long actualSize)
 {
     Stream = stream;
     View = view;
     CacheEntry = default(ViewCache.CacheEntry);
     Offset = offset;
     Size = size;
     Buffer = view.GetSafeBuffer();
     Pointer = null;
     Buffer.AcquirePointer(ref Pointer);
     IsDisposed = false;
     unchecked {
         Pointer += view.GetPointerOffset();
         Pointer += (offset - actualOffset);
     }
 }