Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="header">Existing ModHeader struct</param>
 /// <param name="span">Span to overlay on, aligned to the start of the header</param>
 public ModHeaderFrame(ModHeader header, ReadOnlyMemorySlice <byte> span)
 {
     this._header = header;
     this.HeaderAndContentData = span.Slice(0, checked ((int)this._header.TotalLength));
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="meta">Game metadata to use as reference for alignment</param>
 /// <param name="span">Span to overlay on, aligned to the start of the ModHeader</param>
 public ModHeaderFrame(GameConstants meta, ReadOnlyMemorySlice <byte> span)
 {
     this._header = meta.ModHeader(span);
     this.HeaderAndContentData = span.Slice(0, checked ((int)this._header.TotalLength));
 }