com.esotericsoftware.kryo.io.Output.writeFloat()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(103)

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

Output.writeFloat介绍

[英]Writes a 4 byte float.
[中]写入一个4字节的浮点。

代码示例

代码示例来源:origin: apache/incubator-dubbo

@Override
public void writeFloat(float v) throws IOException {
  output.writeFloat(v);
}

代码示例来源:origin: apache/incubator-dubbo

@Override
public void writeFloat(float v) throws IOException {
  output.writeFloat(v);
}

代码示例来源:origin: davidmoten/rtree

private void writeBounds(Output output, Rectangle mbr) {
  output.writeBoolean(mbr.isDoublePrecision());
  if (mbr.isDoublePrecision()) {
    output.writeDouble(mbr.x1());
    output.writeDouble(mbr.y1());
    output.writeDouble(mbr.y1());
    output.writeDouble(mbr.y2());
  } else {
    output.writeFloat((float) mbr.x1());
    output.writeFloat((float) mbr.y1());
    output.writeFloat((float) mbr.y1());
    output.writeFloat((float) mbr.y2());
  }
}

代码示例来源:origin: com.esotericsoftware/kryo

/** Bulk output of a float array. */
public void writeFloats (float[] object) throws KryoException {
  for (int i = 0, n = object.length; i < n; i++)
    writeFloat(object[i]);
}

代码示例来源:origin: co.cask.cdap/cdap-spark-core2

@Override
public Encoder writeFloat(float f) throws IOException {
 output.writeFloat(f);
 return this;
}

代码示例来源:origin: com.esotericsoftware/kryo-shaded

/** Bulk output of a float array. */
public void writeFloats (float[] object) throws KryoException {
  for (int i = 0, n = object.length; i < n; i++)
    writeFloat(object[i]);
}

代码示例来源:origin: cdapio/cdap

@Override
public Encoder writeFloat(float f) throws IOException {
 output.writeFloat(f);
 return this;
}

代码示例来源:origin: svn2github/kryo

/** Bulk output of a float array. */
public void writeFloats (float[] object) throws KryoException {
  for (int i = 0, n = object.length; i < n; i++)
    writeFloat(object[i]);
}

代码示例来源:origin: com.esotericsoftware.kryo/kryo

/** Bulk output of a float array. */
public void writeFloats (float[] object) throws KryoException {
  for (int i = 0, n = object.length; i < n; i++)
    writeFloat(object[i]);
}

代码示例来源:origin: co.paralleluniverse/galaxy

@Override
public void writeFloat(float v) throws IOException {
  out.writeFloat(v);
}

代码示例来源:origin: com.alibaba/dubbo-serialization-kryo

@Override
public void writeFloat(float v) throws IOException {
  output.writeFloat(v);
}

代码示例来源:origin: co.paralleluniverse/quasar-core

@Override
public void writeFloat(float v) throws IOException {
  out.writeFloat(v);
}

代码示例来源:origin: caskdata/cdap

@Override
public Encoder writeFloat(float f) throws IOException {
 output.writeFloat(f);
 return this;
}

代码示例来源:origin: com.esotericsoftware/kryo

public void writeFloat (float v) throws IOException {
  output.writeFloat(v);
}

代码示例来源:origin: com.esotericsoftware/kryo

public void write (Output output, Object object) {
  output.writeFloat(access.getFloat(object, accessIndex));
}

代码示例来源:origin: usc-cloud/goffish

@Override
public void write(Kryo kryo, Output output, Long2IntOpenHashMap object) {
  try {
    output.writeFloat(FIELD_f.getFloat(object));
    super.write(kryo, output, object);
  } catch (IllegalAccessException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: usc-cloud/goffish

@Override
public void write(Kryo kryo, Output output, Long2ObjectOpenHashMap<V> object) {
  try {
    output.writeFloat(FIELD_f.getFloat(object));
    super.write(kryo, output, object);
  } catch (IllegalAccessException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: com.esotericsoftware/kryo

public void write (Output output, Object object) {
  try {
    output.writeFloat(field.getFloat(object));
  } catch (Exception e) {
    KryoException ex = new KryoException(e);
    ex.addTrace(this + " (" + type.getName() + ")");
    throw ex;
  }
}

代码示例来源:origin: com.esotericsoftware/kryo-shaded

public void write (Output output, Object object) {
  try {
    output.writeFloat(field.getFloat(object));
  } catch (Exception e) {
    KryoException ex = new KryoException(e);
    ex.addTrace(this + " (" + type.getName() + ")");
    throw ex;
  }
}

代码示例来源:origin: com.esotericsoftware.kryo/kryo

public void write (Output output, Object object) {
  try {
    output.writeFloat(field.getFloat(object));
  } catch (Exception e) {
    KryoException ex = new KryoException(e);
    ex.addTrace(this + " (" + type.getName() + ")");
    throw ex;
  }
}

相关文章