src/StringWriter.js
function __expand(bytes) {

        // Resize buffer if more space needed
        if (length+bytes >= buffer.length) {
            var new_buffer = new Uint8Array((length+bytes)*2);
            new_buffer.set(buffer);
            buffer = new_buffer;
        }

        length += bytes;

    }
function __expand(bytes) {

        // Resize buffer if more space needed
        if (length+bytes >= buffer.length) {
            var new_buffer = new Uint8Array((length+bytes)*2);
            new_buffer.set(buffer);
            buffer = new_buffer;
        }

        length += bytes;

    }
function __expand ( bytes ) { // Resize buffer if more space needed if ( length + bytes >= buffer . length ) { var new_buffer = new Uint8Array ( ( length + bytes ) * 2 ) ; new_buffer . set ( buffer ) ; buffer = new_buffer ; } length += bytes ; }
Expands the size of the underlying buffer by the given number of bytes,
updating the length appropriately.

@private
@param {Number} bytes The number of bytes to add to the underlying
buffer.
Expands the size of the underlying buffer by the given number of bytes updating the length appropriately .