internal void MergeWith(NVorbis.DataPacket continuation)
{
var op = continuation as Packet;
if (op == null) throw new ArgumentException("Incorrect packet type!");
Length += continuation.Length;
if (_mergedPacket == null)
{
_mergedPacket = op;
}
else
{
_mergedPacket.MergeWith(continuation);
}
// per the spec, a partial packet goes with the next page's granulepos. we'll go ahead and assign it to the next page as well
PageGranulePosition = continuation.PageGranulePosition;
PageSequenceNumber = continuation.PageSequenceNumber;
}