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

support show the summary of kafka metadata.

This commit is contained in:
winlin 2015-10-22 13:43:38 +08:00
parent d013374871
commit f0e39cc330
8 changed files with 111 additions and 20 deletions

View file

@ -77,6 +77,7 @@ public:
public:
virtual bool null();
virtual bool empty();
virtual std::string to_str();
// interface ISrsCodec
public:
virtual int nb_bytes();
@ -147,6 +148,14 @@ public:
length++;
elems.push_back(elem);
}
virtual int size()
{
return length;
}
virtual T* at(int index)
{
return elems.at(index);
}
// interface ISrsCodec
public:
virtual int nb_bytes()
@ -228,6 +237,14 @@ public:
length++;
elems.push_back(elem);
}
virtual int size()
{
return length;
}
virtual int32_t at(int index)
{
return elems.at(index);
}
// interface ISrsCodec
public:
virtual int nb_bytes()
@ -792,6 +809,7 @@ public:
// convert kafka array[string] to vector[string]
extern std::vector<std::string> srs_kafka_array2vector(SrsKafkaArray<SrsKafkaString>* arr);
extern std::vector<std::string> srs_kafka_array2vector(SrsKafkaArray<int32_t>* arr);
#endif