org.apache.sis.math.Vector.buffer()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(72)

本文整理了Java中org.apache.sis.math.Vector.buffer()方法的一些代码示例,展示了Vector.buffer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.buffer()方法的具体详情如下:
包路径:org.apache.sis.math.Vector
类名称:Vector
方法名:buffer

Vector.buffer介绍

[英]Returns the vector data as a java.nio buffer. Data are not copied: changes in the buffer are reflected on this vector and vice-versa. Date are provided in their "raw" form. For example unsigned integers are given as plain int elements and it is caller responsibility to use Integer#toUnsignedLong(int) if needed.
[中]以java格式返回向量数据。nio缓冲区。数据不会被复制:缓冲区中的更改会反映在该向量上,反之亦然。日期以“原始”形式提供。例如,无符号整数作为纯整数元素给出,如果需要,调用方有责任使用Integer#toUnsignedLong(int)。

代码示例

代码示例来源:origin: apache/sis

/**
   * Returns a buffer over the sub-section represented by this {@code SubSampling} instance.
   */
  @Override
  public Optional<Buffer> buffer() {
    if (step == 1) {
      Vector.this.buffer().map((b) -> JDK9.slice(b.position(first).limit(first + length)));
    }
    return super.buffer();
  }
}

代码示例来源:origin: apache/sis

values = variable.read(change.getTargetExtent(), strides).buffer().get();

相关文章