aeron-client/src/main/java/io/aeron/BufferBuilder.java
public void limit(final int limit)
    {
        if (limit < 0 || limit >= buffer.capacity())
        {
            throw new IllegalArgumentException(
                "limit outside range: capacity=" + buffer.capacity() + " limit=" + limit);
        }

        this.limit = limit;
    }
public void limit(final int limit)
    {
        if (limit < 0 || limit >= buffer.capacity())
        {
            throw new IllegalArgumentException(
                "limit outside range: capacity=" + buffer.capacity() + " limit=" + limit);
        }

        this.limit = limit;
    }
public void limit ( final int limit ) { if ( limit < 0 || limit >= buffer . capacity ( ) ) { throw new IllegalArgumentException ( "limit outside range: capacity=" + buffer . capacity ( ) + " limit=" + limit ) ; } this . limit = limit ; }
Set this limit for this buffer as the position at which the next append operation will occur.

@param limit to be the new value.
Set this limit for this buffer as the position at which the next append operation will occur .