MessageEnd
Record that marks the end of the binary format stream.
using System.IO;
using System.Runtime.CompilerServices;
namespace System.Private.Windows.BinaryFormat.Serializer
{
[NullableContext(1)]
[Nullable(0)]
internal sealed class MessageEnd : IRecord<MessageEnd>, IRecord
{
public static MessageEnd Instance { get; } = new MessageEnd();
public static RecordType RecordType => RecordType.MessageEnd;
private MessageEnd()
{
}
internal static void Write(BinaryWriter writer)
{
writer.Write((byte)RecordType);
}
}
}