no message

master
zcy 2021-05-23 01:27:25 +08:00
parent 7fb4970834
commit 76b6f19e3e
1 changed files with 7 additions and 2 deletions

View File

@ -27,8 +27,8 @@ void TestRingBuffer(){
for(uint32_t i = 0;i < x.Size();i++){
printf("%d ",x.At(i));
}
ret = x.Take(in,20);
std::cout<<"take "<<ret<<"\r\n"<<std::endl;
ret = x.Copy(in,516);
std::cout<<"\r\ncopy "<<ret<<"\r\n"<<std::endl;
for(uint32_t i = 0;i < ret;i++){
printf("%d ",in[i]);
}
@ -37,6 +37,11 @@ void TestRingBuffer(){
for(uint32_t i = 0;i < ret;i++){
printf("%d ",in[i]);
}
ret = x.Take(in,20);
std::cout<<"take "<<ret<<"\r\n"<<std::endl;
for(uint32_t i = 0;i < ret;i++){
printf("%d ",in[i]);
}
}