@Override
 public void addPrimitive(long value) {
   if (!buf.hasRemaining()) {
     buf = list.addBlock().asLongBuffer();
   }
   buf.put(value);
   list.incSize();
 }
 LongArrayListWriter(LongArrayList list) {
   this.list = list;
   buf = list.addBlock().asLongBuffer();
 }