Esempio n. 1
0
 public virtual void Write(BoxWriter writer)
 {
     Common.Logger.Instance.Info("[Box::Write] writing a box of type [" + this.Type + ", " + this.GetType().Name + "], size [" + this.Size + "], offset [" + Offset + "], details: " + this.ToString());
     if (this.expectedType == BoxTypes.Any)
     {
         return;
     }
     writer.WriteUInt32(this.size);
     writer.WriteBoxType(expectedType);
     if (this.size == 1)
     {
         writer.WriteUInt64(largeSize);
     }
 }
Esempio n. 2
0
 public virtual void Write(BoxWriter writer)
 {
     Common.Logger.Instance.Info("[Box::Write] writing a box of type [" + this.Type + ", " + this.GetType().Name + "], size [" + this.Size + "], offset [" + Offset + "], details: " + this.ToString());
       if (this.expectedType == BoxTypes.Any)  return;
       writer.WriteUInt32(this.size);
       writer.WriteBoxType(expectedType);
       if (this.size == 1)
       {
     writer.WriteUInt64(largeSize);
       }
 }