code: private byte[] resizeBuffer(final Context context) {
          if (context.buffer == null) {
              context.buffer = new byte[getDefaultBufferSize()];
              context.pos = 0;
              context.readPos = 0;
          } else {
              final byte[] b = new byte[context.buffer.length * DEFAULT_BUFFER_RESIZE_FACTOR];
              System.arraycopy(context.buffer, 0, b, 0, context.buffer.length);
              context.buffer = b;
          }
          return context.buffer;
      }
docs: Increases our buffer by the {@link #DEFAULT_BUFFER_RESIZE_FACTOR}.
  @param context the context to be used