forked from Myriadbits/MXFInspect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MXFDeltaEntry.cs
35 lines (32 loc) · 898 Bytes
/
MXFDeltaEntry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MXFInspect
{
public class MXFDeltaEntry : MXFObject
{
[CategoryAttribute("DeltaEntry"), ReadOnly(true)]
public byte DeltaPos { get; set; }
[CategoryAttribute("DeltaEntry"), ReadOnly(true)]
public byte Slice { get; set; }
[CategoryAttribute("DeltaEntry"), ReadOnly(true)]
public UInt32 ElementDelta { get; set; }
public MXFDeltaEntry(MXFReader reader)
{
this.DeltaPos = reader.ReadB();
this.Slice = reader.ReadB();
this.ElementDelta = reader.ReadD();
}
/// <summary>
/// Some output
/// </summary>
/// <returns></returns>
public override string ToString()
{
return string.Format("DeltaEntry - DeltaPos {0}, Slice {1}, ElementDelta {2}", this.DeltaPos, this.Slice, this.ElementDelta);
}
}
}