Пример #1
0
 /// <summary>
 /// Creates a new <see cref="RAFFileEntry"/>.
 /// </summary>
 /// <param name="raf"><see cref="RAF"/> instance the current <see cref="RAFFileEntry"/> belongs to.</param>
 /// <param name="path">Game path of the new file.</param>
 /// <param name="offset">Start offset of the new file in the data file of <paramref name="raf"/>.</param>
 /// <param name="length">Data length of the new file.</param>
 public RAFFileEntry(RAF raf, string path, uint offset, uint length)
 {
     this._raf   = raf;
     this.Path   = path;
     this.Offset = offset;
     this.Length = length;
 }
Пример #2
0
 /// <summary>
 /// Parses the content of a <see cref="RAFFileEntry"/> from a previously initialized <see cref="BinaryReader"/>.
 /// </summary>
 /// <param name="raf"><see cref="RAF"/> instance the current <see cref="RAFFileEntry"/> belongs to.</param>
 /// <param name="br"><see cref="BinaryReader"/> instance containing data from a this <see cref="RAFFileEntry"/>.</param>
 public RAFFileEntry(RAF raf, BinaryReader br)
 {
     this._raf          = raf;
     this._pathHash     = br.ReadUInt32();
     this.Offset        = br.ReadUInt32();
     this.Length        = br.ReadUInt32();
     this.PathListIndex = br.ReadInt32();
 }