public static LinkedBuffer use ( byte [ ] buffer , int start ) { assert start >= 0 ; if ( buffer . length - start < MIN_BUFFER_SIZE ) throw new IllegalArgumentException ( MIN_BUFFER_SIZE + " is the minimum buffer size." ) ; return new LinkedBuffer ( buffer , start , start ) ; }
Uses the existing byte array as the internal buffer .