mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
byte_buffer_c::add() with memory_cptr paramter
This commit is contained in:
parent
39943b5c08
commit
118b92b99e
@ -64,6 +64,10 @@ public:
|
||||
size += new_size;
|
||||
};
|
||||
|
||||
void add(memory_cptr &new_buffer) {
|
||||
add(new_buffer->get_buffer(), new_buffer->get_size());
|
||||
}
|
||||
|
||||
void remove(int num) {
|
||||
if ((pos + num) > size)
|
||||
mxerror(Y("byte_buffer_c: (pos + num) > size. Should not have happened. Please file a bug report.\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user