/// <summary> /// Factory /// </summary> /// <param name="header">Existing SubrecordHeader struct</param> /// <param name="span">Span to overlay on, aligned to the start of the header</param> /// <param name="pinLocation">Location pin tracker relative to parent MajorRecordFrame</param> public static SubrecordPinFrame FactoryNoTrim(SubrecordHeader header, ReadOnlyMemorySlice <byte> span, int pinLocation) { return(new SubrecordPinFrame( SubrecordFrame.FactoryNoTrim(header, span), span, pinLocation)); }
private SubrecordPinFrame(SubrecordFrame frame, int pinLocation) { Frame = frame; Location = pinLocation; }
/// <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 header</param> /// <param name="pinLocation">Location pin tracker relative to parent MajorRecordFrame</param> public SubrecordPinFrame(GameConstants meta, ReadOnlyMemorySlice <byte> span, int pinLocation) { Frame = new SubrecordFrame(meta, span); Location = pinLocation; }
private SubrecordPinFrame(SubrecordFrame frame, ReadOnlyMemorySlice <byte> span, int pinLocation) { this.Frame = frame; this.Location = pinLocation; }