Пример #1
0
 public override void Write(BlockBuffer bb)
 {
     bb.Offset = 0x0194;
     bb.WriteLong(TimeStamp);
     bb.WriteLong(DataSizeInBlocks);
     bb.WriteLong(SizeOfIndexInBytes);
     bb.WriteByte((byte)'S');
     bb.WriteByte((byte)'F');
     bb.WriteByte((byte)'S');
     bb.WriteByte(VersionNumber);
     bb.WriteLong(TotalBlocks);
     bb.WriteLong(TotalReservedBlocks);
     bb.WriteByte(BlockSize);
     bb.WriteByte(Checksum);
 }
Пример #2
0
        public override void Write(BlockBuffer bb)
        {
            bb.WriteByte(EntryType);
            bb.WriteLong(TimeStamp);
            bb.WriteLong(StartingBlock);
            bb.WriteLong(EndingBlock);
            bb.WriteLong(Length);

            const int rem = 22;

            if (Name.Length > rem)
            {
                Continuations = (byte)(((Name.Length - rem) / 64) + 1);
                bb.WriteByte(Continuations);
                bb.WriteString(Name.Remove(rem));
            }
            else
            {
                bb.WriteByte(Continuations);
                bb.WriteString(Name);
            }
        }
Пример #3
0
 public override void Write(BlockBuffer bb)
 {
     bb.WriteByte(EntryType);
     bb.WriteLong(StartingBlock);
     bb.WriteLong(EndingBlock);
 }
Пример #4
0
 public override void Write(BlockBuffer bb)
 {
     bb.WriteByte(EntryType);
     bb.WriteLong(TimeStamp);
     bb.WriteString(VolumeName);
 }