Package java.nio

Examples of java.nio.MappedByteBuffer.asDoubleBuffer()


      MappedByteBuffer buf = new FileInputStream(f).getChannel().map(FileChannel.MapMode.READ_ONLY, start,
                                                                     Math.min(f.length() - start, size));
      if (loadNow) {
        buf.load();
      }
      addData(buf.asDoubleBuffer());
    }
  }

  public static void writeMatrix(File f, Matrix m) throws IOException {
    Preconditions.checkArgument(f.canWrite(), "Can't write to output file");
View Full Code Here


    public FITSDataDouble(FITSImage fitsImage) {
        super(fitsImage);

        MappedByteBuffer byteBuffer = fitsImage.getByteBuffer();
        if (byteBuffer != null) {
            _mappedBuffer = byteBuffer.asDoubleBuffer();
        }
    }


    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.