Constructs and initializes a new instance of Page by reading a raw Ogg page from a specified position in a specified file.
|file||A File object containing the file from which the contents of the new instance are to be read. |
|position||A long value specify at what position to read. |
|ArgumentNullException||file is . |
|ArgumentOutOfRangeException||position is less than zero or greater than the size of the file. |
|CorruptFileException||The Ogg identifier could not be found at the correct location. |
Definition at line 94 of file Page.cs.
: this (new PageHeader (file, position))
file.Seek (position + header.Size);
foreach (int packet_size in header.PacketSizes)
packets.Add (file.ReadBlock (packet_size));