34 if (queue ==
nullptr) {
49 queue->
size = queue_size;
50 queue->
mask = queue_size - 1;
56 if (queue ==
nullptr) {
112 memcpy((
void *)(&(queue->
storage_packet[wr_idx])), (
void *)(storage_packet),
static uint32_t RoundupPowerOf2(uint32_t size)
void QueuePrePop(LidarDataQueue *queue, StoragePacket *storage_packet)
uint8_t raw_data[KEthPacketMaxLength]
void ResetQueue(LidarDataQueue *queue)
uint32_t QueueIsFull(LidarDataQueue *queue)
uint32_t QueueUnusedSize(LidarDataQueue *queue)
uint32_t QueuePushAny(LidarDataQueue *queue, uint8_t *data, uint32_t length, uint64_t time_rcv, uint32_t point_num)
unsigned __int64 uint64_t
uint32_t QueueUsedSize(LidarDataQueue *queue)
int InitQueue(LidarDataQueue *queue, uint32_t queue_size)
static bool IsPowerOf2(uint32_t size)
StoragePacket * storage_packet
uint32_t QueueIsEmpty(LidarDataQueue *queue)
void QueuePopUpdate(LidarDataQueue *queue)
uint32_t QueuePush(LidarDataQueue *queue, StoragePacket *storage_packet)
int DeInitQueue(LidarDataQueue *queue)
uint32_t QueuePop(LidarDataQueue *queue, StoragePacket *storage_packet)