本文整理了Java中io.vertx.core.buffer.Buffer.appendFloat()
方法的一些代码示例,展示了Buffer.appendFloat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.appendFloat()
方法的具体详情如下:
包路径:io.vertx.core.buffer.Buffer
类名称:Buffer
方法名:appendFloat
[英]Appends the specified float to the end of the Buffer. The buffer will expand as necessary to accommodate any bytes written.
Returns a reference to this so multiple operations can be appended together.
[中]将指定的浮点附加到缓冲区的末尾。缓冲区将根据需要扩展以容纳写入的任何字节。
返回对此的引用,以便可以将多个操作附加在一起。
代码示例来源:origin: eclipse-vertx/vert.x
@Override
public void encodeToWire(Buffer buffer, Float f) {
buffer.appendFloat(f);
}
代码示例来源:origin: io.vertx/vertx-core
@Override
public void encodeToWire(Buffer buffer, Float f) {
buffer.appendFloat(f);
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Appends the specified <code>float</code> to the end of the Buffer. The buffer will expand as necessary to accommodate any bytes written.<p>
* Returns a reference to <code>this</code> so multiple operations can be appended together.
* @param f
* @return
*/
public io.vertx.rxjava.core.buffer.Buffer appendFloat(float f) {
delegate.appendFloat(f);
return this;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Appends the specified <code>float</code> to the end of the Buffer. The buffer will expand as necessary to accommodate any bytes written.<p>
* Returns a reference to <code>this</code> so multiple operations can be appended together.
* @param f
* @return
*/
public io.vertx.rxjava.core.buffer.Buffer appendFloat(float f) {
delegate.appendFloat(f);
return this;
}
代码示例来源:origin: vert-x3/vertx-web
buffer.appendByte(TYPE_DOUBLE).appendDouble((double) val);
} else if (val instanceof Float) {
buffer.appendByte(TYPE_FLOAT).appendFloat((float) val);
} else if (val instanceof Character) {
buffer.appendByte(TYPE_CHAR).appendShort((short) ((Character) val).charValue());
代码示例来源:origin: io.vertx/vertx-web
buffer.appendByte(TYPE_DOUBLE).appendDouble((double) val);
} else if (val instanceof Float) {
buffer.appendByte(TYPE_FLOAT).appendFloat((float) val);
} else if (val instanceof Character) {
buffer.appendByte(TYPE_CHAR).appendShort((short) ((Character) val).charValue());
内容来源于网络,如有侵权,请联系作者删除!