1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Refine RTP packet api, keep shared message to private

This commit is contained in:
winlin 2021-02-26 12:25:35 +08:00
parent 2ae7e22469
commit 58d71c23bc
7 changed files with 50 additions and 243 deletions

View file

@ -109,6 +109,8 @@ public:
SrsBuffer(char* b, int nn);
~SrsBuffer();
public:
// Copy the object, keep position of buffer.
SrsBuffer* copy();
// Get the data and head of buffer.
// current-bytes = head() = data() + pos()
char* data();