本文整理了Java中com.esotericsoftware.kryo.io.Input.total()
方法的一些代码示例,展示了Input.total()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.total()
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.io.Input
类名称:Input
方法名:total
[英]Returns the number of bytes read.
[中]返回读取的字节数。
代码示例来源:origin: org.gradle/gradle-messaging
/**
* Returns the total number of bytes consumed by this decoder. Some additional bytes may also be buffered by this decoder but have not been consumed.
*/
public long getReadPosition() {
return input.total() + extraSkipped;
}
代码示例来源:origin: com.twitter/chill-java
public int numOfReadBytes() { return (int)input.total(); }
代码示例来源:origin: tv.cntt/chill-scala-2-11
public int numOfReadBytes() { return input.total(); }
代码示例来源:origin: org.apache.giraph/giraph-core
@Override
public long finalizeInput(boolean deleteOnClose) {
input.close();
long count = input.total();
checkState(!deleteOnClose || file.delete(),
"finalizeInput: failed to delete %s.", file.getAbsoluteFile());
return count;
}
}
内容来源于网络,如有侵权,请联系作者删除!