FreeSpaceBox.cs 649 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6. namespace MatrixIO.IO.Bmff.Boxes
  7. {
  8. /// <summary>
  9. /// Free Space Box ("free")
  10. /// </summary>
  11. [Box("free", "Free Space Box")]
  12. public class FreeSpaceBox : Box, IContentBox
  13. {
  14. public FreeSpaceBox() : base() { }
  15. public FreeSpaceBox(ulong size) : base()
  16. {
  17. this.Offset = 0;
  18. this.EffectiveSize = size;
  19. this._SourceStream = Stream.Null;
  20. ContentOffset = this.CalculateSize();
  21. }
  22. public FreeSpaceBox(Stream stream) : base(stream) { }
  23. }
  24. }