24#ifndef _FRAMED_SOURCE_HH
36 void* afterClientData);
74 unsigned maxBufferSize = 0);
91 void enqueue(
unsigned char const* from,
unsigned numBytes);
93 void insert(
unsigned char const* from,
unsigned numBytes,
unsigned toPosition);
95 void extract(
unsigned char* to,
unsigned numBytes,
unsigned fromPosition);
108 return numBytes >
fMax;
113 struct timeval
const& presentationTime,
114 unsigned durationInMicroseconds);
static void increaseMaxSizeTo(unsigned newMaxSize)
struct timeval fOverflowPresentationTime
Boolean wouldOverflow(unsigned numBytes) const
Boolean isTooBigForAPacket(unsigned numBytes) const
Boolean haveOverflowData() const
void extract(unsigned char *to, unsigned numBytes, unsigned fromPosition)
unsigned fOverflowDurationInMicroseconds
unsigned fOverflowDataSize
unsigned numOverflowBytes(unsigned numBytes) const
unsigned fOverflowDataOffset
unsigned overflowDataSize() const
struct timeval overflowPresentationTime() const
unsigned totalBytesAvailable() const
Boolean isPreferredSize() const
unsigned char * packet() const
void skipBytes(unsigned numBytes)
void setOverflowData(unsigned overflowDataOffset, unsigned overflowDataSize, struct timeval const &presentationTime, unsigned durationInMicroseconds)
unsigned overflowDurationInMicroseconds() const
void increment(unsigned numBytes)
void enqueue(unsigned char const *from, unsigned numBytes)
unsigned char * curPtr() const
void insertWord(u_int32_t word, unsigned toPosition)
void enqueueWord(u_int32_t word)
unsigned curPacketSize() const
OutPacketBuffer(unsigned preferredPacketSize, unsigned maxPacketSize, unsigned maxBufferSize=0)
unsigned totalBufferSize() const
void adjustPacketStart(unsigned numBytes)
u_int32_t extractWord(unsigned fromPosition)
void insert(unsigned char const *from, unsigned numBytes, unsigned toPosition)