ArrayInfo
Array information structure.
using System.IO;
using System.Runtime.CompilerServices;
namespace System.Private.Windows.BinaryFormat.Serializer
{
internal readonly struct ArrayInfo : IBinaryWriteable
{
public Id ObjectId { get; }
public Count Length { get; }
public ArrayInfo(Id objectId, Count length)
{
Length = length;
ObjectId = objectId;
}
[NullableContext(1)]
public void Write(BinaryWriter writer)
{
writer.Write(ObjectId);
writer.Write(Length);
}
}
}