开发者

deleting bytes from an ostringstream

开发者 https://www.devze.com 2023-01-15 16:30 出处:网络
how do i delete开发者_运维知识库 the first n bytes of an ostringstream? I basically have to see howmany bytes went over a socket and if it did not go through fully...i have to delete whatever went th

how do i delete开发者_运维知识库 the first n bytes of an ostringstream?

I basically have to see howmany bytes went over a socket and if it did not go through fully...i have to delete whatever went through


Just do what you said : remove the first n bytes ?

ostr.str(ostr.str().substr(n))
0

精彩评论

暂无评论...
验证码 换一张
取 消