开发者

deleting bytes from an ostringstream

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜