Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

TagLib::Ogg::Page::Page ( File  file,
long  position 
) [inline]

Constructs and initializes a new instance of Page by reading a raw Ogg page from a specified position in a specified file.

fileA File object containing the file from which the contents of the new instance are to be read.
positionA long value specify at what position to read.
ArgumentNullExceptionfile is .
ArgumentOutOfRangeExceptionposition is less than zero or greater than the size of the file.
CorruptFileExceptionThe Ogg identifier could not be found at the correct location.

Definition at line 94 of file Page.cs.

References TagLib::File::Seek().

                  : this (new PageHeader (file, position))
                  file.Seek (position + header.Size);
                  foreach (int packet_size in header.PacketSizes)
                        packets.Add (file.ReadBlock (packet_size));

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index