mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-11 15:17:48 +00:00
2.0-alpha4
This commit is contained in:
@@ -97,3 +97,8 @@ void BufferOutputStream::Reset(){
|
||||
offset=0;
|
||||
}
|
||||
|
||||
void BufferOutputStream::Rewind(size_t numBytes){
|
||||
if(numBytes>offset)
|
||||
throw std::out_of_range("buffer underflow");
|
||||
offset-=numBytes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user