public static int append()

in src/main/java/org/apache/datasketches/Files.java [412:421]


  public static int append(final byte[] byteArr, final FileChannel fc) {
    final int bytes;
    final ByteBuffer bb = ByteBuffer.wrap(byteArr);
    try {
      bytes = fc.write(bb, fc.size());
    } catch (final IOException e) {
      throw new RuntimeException(e);
    }
    return bytes;
  }