You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassPreview{/// <summary>/// Gets the image width, in pixels./// </summary>[FieldOrder(0)]publicuintResolutionX{get;set;}=224;/// <summary>/// Gets the operation mark 'x'/// </summary>[FieldOrder(1)][FieldLength(4)][SerializeAs(SerializedType.TerminatedString)]publicstringMark{get;set;}="x";/// <summary>/// Gets the image height, in pixels./// </summary>[FieldOrder(2)]publicuintResolutionY{get;set;}=168;[Ignore]publicuintDataSize=>ResolutionX*ResolutionY*2;[FieldOrder(3)][FieldCount(nameof(DataSize))]publicbyte[]Data{get;set;}=Array.Empty<byte>();}
Deserializing that results in:
Note that outrageous Data[10730659] instead of 75264