io.vertx.core.buffer.Buffer.appendDouble()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(92)

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

Buffer.appendDouble介绍

[英]Appends the specified double 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.
[中]将指定的double追加到缓冲区的末尾。缓冲区将根据需要扩展以容纳写入的任何字节。
返回对此的引用,以便可以将多个操作附加在一起。

代码示例

代码示例来源:origin: eclipse-vertx/vert.x

@Override
public void encodeToWire(Buffer buffer, Double d) {
 buffer.appendDouble(d);
}

代码示例来源:origin: io.vertx/vertx-core

@Override
public void encodeToWire(Buffer buffer, Double d) {
 buffer.appendDouble(d);
}

代码示例来源:origin: vert-x3/vertx-rx

/**
 * Appends the specified <code>double</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 d 
 * @return 
 */
public io.vertx.rxjava.core.buffer.Buffer appendDouble(double d) { 
 delegate.appendDouble(d);
 return this;
}

代码示例来源:origin: io.vertx/vertx-rx-java

/**
 * Appends the specified <code>double</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 d 
 * @return 
 */
public io.vertx.rxjava.core.buffer.Buffer appendDouble(double d) { 
 delegate.appendDouble(d);
 return this;
}

代码示例来源:origin: vert-x3/vertx-web

buffer.appendByte(TYPE_BYTE).appendByte((byte) val);
} else if (val instanceof Double) {
 buffer.appendByte(TYPE_DOUBLE).appendDouble((double) val);
} else if (val instanceof Float) {
 buffer.appendByte(TYPE_FLOAT).appendFloat((float) val);

代码示例来源:origin: io.vertx/vertx-web

buffer.appendByte(TYPE_BYTE).appendByte((byte) val);
} else if (val instanceof Double) {
 buffer.appendByte(TYPE_DOUBLE).appendDouble((double) val);
} else if (val instanceof Float) {
 buffer.appendByte(TYPE_FLOAT).appendFloat((float) val);

相关文章

微信公众号

最新文章

更多