本文整理匯總了Java中com.esotericsoftware.kryo.io.Output.writeFloats方法的典型用法代碼示例。如果您正苦於以下問題:Java Output.writeFloats方法的具體用法?Java Output.writeFloats怎麽用?Java Output.writeFloats使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.esotericsoftware.kryo.io.Output
的用法示例。
在下文中一共展示了Output.writeFloats方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: write
import com.esotericsoftware.kryo.io.Output; //導入方法依賴的package包/類
@Override
public void write(Kryo kryo, Output output, WindowedMean windowedMean) {
int size = windowedMean.getWindowSize();
float[] values = windowedMean.getWindowValues();
int count = values.length;
output.writeVarInt(size, true);
output.writeVarInt(count, true);
output.writeFloats(values);
}
示例2: write
import com.esotericsoftware.kryo.io.Output; //導入方法依賴的package包/類
@Override
public void write (Kryo kryo, Output output, Polyline polyline) {
output.writeInt(polyline.getVertices().length);
output.writeFloats(polyline.getVertices());
output.writeFloat(polyline.getX());
output.writeFloat(polyline.getY());
output.writeFloat(polyline.getOriginX());
output.writeFloat(polyline.getOriginY());
output.writeFloat(polyline.getRotation());
output.writeFloat(polyline.getScaleX());
output.writeFloat(polyline.getScaleY());
}
示例3: write
import com.esotericsoftware.kryo.io.Output; //導入方法依賴的package包/類
@Override
public void write (Kryo kryo, Output output, Polygon polygon) {
output.writeInt(polygon.getVertices().length);
output.writeFloats(polygon.getVertices());
output.writeFloat(polygon.getX());
output.writeFloat(polygon.getY());
output.writeFloat(polygon.getOriginX());
output.writeFloat(polygon.getOriginY());
output.writeFloat(polygon.getRotation());
output.writeFloat(polygon.getScaleX());
output.writeFloat(polygon.getScaleY());
}
示例4: write
import com.esotericsoftware.kryo.io.Output; //導入方法依賴的package包/類
@Override
public void write(Kryo kryo, Output output, Matrix4 matrix4) {
output.writeFloats(matrix4.val);
}
示例5: write
import com.esotericsoftware.kryo.io.Output; //導入方法依賴的package包/類
@Override
public void write(Kryo kryo, Output output, Matrix3 matrix3) {
output.writeFloats(matrix3.val);
}