@Override public void insert( int i, byte v ) { prepForInsert( i, 1 ); a[i] = v; }
@Override public void insert( int i, ByteBuffer vs, int c ) { prepForInsert( i, c ); vs.get( a, i, c ); }
@Override public void insert( int i, byte[] vs, int from, int to ) { int c = to - from; prepForInsert( i, c ); System.arraycopy( vs, from, a, i, c ); }
@Override public void insert( int i, String s, int from, int to ) { CharBuffer s2 = CharBuffer.wrap( s, from, to ); int c = to - from; prepForInsert( i, c ); ByteBuffer a2 = ByteBuffer.wrap( a, i, c ); encoder.encode( s2, a2, false ); }
@Override public void insert( int i, Bytes vs, int from, int to ) { int c = to - from; prepForInsert( i, c ); vs.copyTo( from, a, i, c ); }