Exemplo n.º 1
0
  @Override
  protected int writeData(RandomAccessOutputStream os, int toOffset) throws IOException {
    //
    dataOffset = toOffset;
    os.writeInt(toOffset);
    os.seek(toOffset);

    for (double value : data) os.writeDouble(value);

    toOffset += (data.length << 3);

    return toOffset;
  }