mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #467, support write log to kafka. 3.0.6
This commit is contained in:
parent
76cd3f8749
commit
9a47390253
9 changed files with 242 additions and 98 deletions
|
@ -39,17 +39,27 @@ ISrsCodec::~ISrsCodec()
|
|||
|
||||
SrsBuffer::SrsBuffer()
|
||||
{
|
||||
p = bytes = NULL;
|
||||
nb_bytes = 0;
|
||||
|
||||
// TODO: support both little and big endian.
|
||||
srs_assert(srs_is_little_endian());
|
||||
set_value(NULL, 0);
|
||||
}
|
||||
|
||||
SrsBuffer::SrsBuffer(char* b, int nb_b)
|
||||
{
|
||||
set_value(b, nb_b);
|
||||
}
|
||||
|
||||
SrsBuffer::~SrsBuffer()
|
||||
{
|
||||
}
|
||||
|
||||
void SrsBuffer::set_value(char* b, int nb_b)
|
||||
{
|
||||
p = bytes = b;
|
||||
nb_bytes = nb_b;
|
||||
|
||||
// TODO: support both little and big endian.
|
||||
srs_assert(srs_is_little_endian());
|
||||
}
|
||||
|
||||
int SrsBuffer::initialize(char* b, int nb)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue