@Override
 public void writeAsInt64(int offset, long d) {
   write(offset, (int) d);
 }
 @Override
 public void writeAsInt(int offset, int d) {
   write(offset, (int) d);
 }
 @Override
 public void writeAsDbl(int offset, double d) {
   write(offset, (int) d);
 }