int pageSequenceNumber() const
ByteVector render() const
ByteVectorList packets() const
static List< Page * > paginate(const ByteVectorList &packets, PaginationStrategy strategy, unsigned int streamSerialNumber, int firstPage, bool firstPacketContinued=false, bool lastPacketCompleted=true, bool containsLastPacket=false)
Page(const Page &)=delete
Page & operator=(const Page &)=delete
void setPageSequenceNumber(int sequenceNumber)
@ DoesNotContainPacket
No part of the packet is contained in the page.
Definition oggpage.h:115
@ CompletePacket
The packet is wholly contained in the page.
Definition oggpage.h:117
@ BeginsWithPacket
The page starts with the given packet.
Definition oggpage.h:119
@ EndsWithPacket
The page ends with the given packet.
Definition oggpage.h:121
void setFirstPacketIndex(int index)
Page(File *file, offset_t pageOffset)
ContainsPacketFlags containsPacket(int index) const
const PageHeader * header() const
offset_t fileOffset() const
int firstPacketIndex() const
Page(const ByteVectorList &packets, unsigned int streamSerialNumber, int pageNumber, bool firstPacketContinued=false, bool lastPacketCompleted=true, bool containsLastPacket=false)
unsigned int packetCount() const