3
public class IsoHandlerBox : FullBox
5
private ByteVector handler_type;
8
public IsoHandlerBox (BoxHeader header, File file, Box handler) : base (header, file, handler)
10
file.Seek (DataOffset + 4);
11
ByteVector box_data = file.ReadBlock (DataSize - 4);
12
handler_type = box_data.Mid (0, 4);
13
name = box_data.Mid (16, box_data.Find ((byte) 0, 16) - 16).ToString ();
16
public IsoHandlerBox (ByteVector handler_type, string name) : base ("hdlr", 0, 0)
18
this.handler_type = handler_type.Mid (0,4);
22
public override ByteVector Render ()
24
ByteVector output = new ByteVector (4);
25
output.Add (handler_type);
26
output.Add (new ByteVector (12));
27
output.Add (ByteVector.FromString (name));
28
output.Add (new ByteVector (2));
29
return Render (output);
32
public ByteVector HandlerType {get {return handler_type;}}
33
public string Name {get {return name;}}