示例#1
0
 private void WriteUInt16(EntryOffsets fromOffset, ushort data)
 {
     this.indexView.Write(this.Offset + (long)fromOffset, EndianHelper.Swap(data));
 }
示例#2
0
 private ushort ReadUInt16(EntryOffsets fromOffset)
 {
     return(EndianHelper.Swap(this.indexView.ReadUInt16(this.Offset + (long)fromOffset)));
 }
示例#3
0
 private uint ReadUInt32(EntryOffsets fromOffset)
 {
     return EndianHelper.Swap(this.indexView.ReadUInt32(this.Offset + (long)fromOffset));
 }
示例#4
0
 public static bool HasInitializedCTimeEntry(MemoryMappedViewAccessor indexView, long offset)
 {
     return(EndianHelper.Swap(indexView.ReadUInt32(offset + (long)EntryOffsets.ctimeSeconds)) != 0);
 }
示例#5
0
文件: Index.cs 项目: wjmjimmie/GVFS
 public static bool HasUninitializedCTimeEntry(Index index, long offset)
 {
     return(EndianHelper.Swap(index.indexView.ReadUInt32(offset + (long)EntryOffsets.ctimeSeconds)) == 0);
 }