本文整理了Java中org.apache.sis.math.Vector.buffer()
方法的一些代码示例,展示了Vector.buffer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.buffer()
方法的具体详情如下:
包路径:org.apache.sis.math.Vector
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!