/// <summary> /// Renders the current instance as a raw ASF object. /// </summary> /// <returns> /// A <see cref="ByteVector" /> object containing the /// rendered version of the current instance. /// </returns> public override ByteVector Render() { ByteVector output = StreamType.ToByteArray(); output.Add(ErrorCorrectionType.ToByteArray()); output.Add(RenderQWord(time_offset)); output.Add(RenderDWord((uint)TypeSpecificData.Count)); output.Add(RenderDWord((uint)ErrorCorrectionData.Count)); output.Add(RenderWord(Flags)); output.Add(RenderDWord(reserved)); output.Add(TypeSpecificData); output.Add(ErrorCorrectionData); return(Render(output)); }