Lines Matching defs:num
30 bool RingBuffer::Init(uint32_t singleSize, uint32_t num)
32 if (singleSize == 0 || num == 0 || (num & (num - 1)) != 0) { // power of 2
33 LOG(ERROR) << "singleSize:" << singleSize << " num:" << num << " error";
36 bufArray_ = new (std::nothrow) uint8_t* [num] {};
37 lenArray_ = new (std::nothrow) uint32_t [num] {};
39 LOG(ERROR) << "new buf or len " << num << " error";
42 for (uint32_t i = 0; i < num; i++) {
52 num_ = num;