Initialize or expand the buffer, don't care how much.
| 2627 | |
| 2628 | // Initialize or expand the buffer, don't care how much. |
| 2629 | int Debugger::Buffer::Expand() |
| 2630 | { |
| 2631 | return ExpandIfNecessary(mDataSize ? mDataSize * 2 : DEBUGGER_INITIAL_BUFFER_SIZE); |
| 2632 | } |
| 2633 | |
| 2634 | // Expand as necessary to meet a minimum required size. |
| 2635 | int Debugger::Buffer::ExpandIfNecessary(size_t aRequiredSize) |