示例#1
0
 public void RawWrite(MmfFileView raw, int offset)
 {
     unsafe
     {
         raw.WriteByte(offset, Status); offset       += sizeof(byte);
         raw.WriteUInt32(offset, Capacity); offset   += sizeof(uint);
         raw.WriteUInt32(offset, OffsetNext); offset += sizeof(uint);
         raw.WriteUInt32(offset, OffsetPrev);
     }
 }
示例#2
0
 public unsafe void RawWrite(MmfFileView view, int offset)
 {
     view.WriteUInt32(offset, Signature); offset += sizeof(uint);
     view.WriteUInt32(offset, FreeSpace); offset += sizeof(uint);
     view.WriteUInt32(offset, MaxFreeSpace);
 }