docs: protected byte[] copyOf(byte[] original, int newLength) {
  
          byte[] copy = new byte[newLength];
  
          System.arraycopy(original, 0, copy, 0,
                           Math.min(original.length, newLength));
  
          return copy;
      }