Code example for ByteArrayBuffer

Methods: capacity

0
 
    /** 
     * @since 4.`1 
     */ 
    public int capacity() { 
        return this.buffer.capacity(); 
    } 
 
    /** 
     * @since 4.1 
     */ 
    public int length() { 
        return this.buffer.length(); 
    } 
 
    /** 
     * @since 4.1 
     */ 
    public int available() { 
        return capacity() - length(); 
    }