no message
parent
7fb4970834
commit
76b6f19e3e
|
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue