Class H5Dataset.H5Dataspace

    • Method Detail

      • toByteVector

        @WillClose
        public void toByteVector​(byte[] buf,
                                 int start,
                                 int end,
                                 long scalarType)
        Write the dataspace into a slice of a target.

        The start and end are expressed in terms of number of datapoints. The slice must contain exactly size() datapoints to be valid.

        The dataspace is closed once the operation is completed and should no-longer be used.

        Parameters:
        buf - a target buffer of size (end - start) * sizeof(scalarType)
        start - start of a slice. inclusive
        end - end of a slice, exclusive
        scalarType - a datatype to write into the buffer
      • toByteVector

        @WillClose
        public byte[] toByteVector​(long scalarType)
      • toBooleanVector

        public boolean[] toBooleanVector()
      • toIntegerVector

        @WillClose
        public int[] toIntegerVector()
      • toDoubleVector

        @WillClose
        public double[] toDoubleVector()
      • size

        public long size()
        Obtain the size of this dataspace.