本文整理汇总了Java中com.badlogic.gdx.utils.compression.ICodeProgress类的典型用法代码示例。如果您正苦于以下问题:Java ICodeProgress类的具体用法?Java ICodeProgress怎么用?Java ICodeProgress使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ICodeProgress类属于com.badlogic.gdx.utils.compression包,在下文中一共展示了ICodeProgress类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Code
import com.badlogic.gdx.utils.compression.ICodeProgress; //导入依赖的package包/类
public void Code (java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize,
ICodeProgress progress) throws IOException {
_needReleaseMFStream = false;
try {
SetStreams(inStream, outStream, inSize, outSize);
while (true) {
CodeOneBlock(processedInSize, processedOutSize, finished);
if (finished[0]) return;
if (progress != null) {
progress.SetProgress(processedInSize[0], processedOutSize[0]);
}
}
} finally {
ReleaseStreams();
}
}
示例2: Code
import com.badlogic.gdx.utils.compression.ICodeProgress; //导入依赖的package包/类
public void Code(java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize,
ICodeProgress progress) throws IOException {
_needReleaseMFStream = false;
try {
SetStreams(inStream, outStream, inSize, outSize);
while (true) {
CodeOneBlock(processedInSize, processedOutSize, finished);
if (finished[0])
return;
if (progress != null) {
progress.SetProgress(processedInSize[0], processedOutSize[0]);
}
}
} finally {
ReleaseStreams();
}
}
示例3: Code
import com.badlogic.gdx.utils.compression.ICodeProgress; //导入依赖的package包/类
public void Code(InputStream paramInputStream, OutputStream paramOutputStream, long paramLong1, long paramLong2, ICodeProgress paramICodeProgress)
{
this._needReleaseMFStream = false;
try
{
SetStreams(paramInputStream, paramOutputStream, paramLong1, paramLong2);
while (true)
{
CodeOneBlock(this.processedInSize, this.processedOutSize, this.finished);
int i = this.finished[0];
if (i != 0)
return;
if (paramICodeProgress != null)
paramICodeProgress.SetProgress(this.processedInSize[0], this.processedOutSize[0]);
}
}
finally
{
ReleaseStreams();
}
}