本文整理了Java中org.vertx.java.core.buffer.Buffer.appendLong()
方法的一些代码示例,展示了Buffer.appendLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.appendLong()
方法的具体详情如下:
包路径:org.vertx.java.core.buffer.Buffer
类名称:Buffer
方法名:appendLong
[英]Appends the specified long to the end of the Buffer. The buffer will expand as necessary to accomodate any bytes written.
Returns a reference to this so multiple operations can be appended together.
[中]
代码示例来源:origin: vert-x/mod-lang-php
public Buffer appendLong(Env env, Value value) {
buffer.appendLong(value.toLong());
return this;
}
代码示例来源:origin: org.vert-x/vertx-core
protected void writeBody(Buffer buff) {
if (body == null) {
buff.appendByte((byte)0);
} else {
buff.appendByte((byte)1);
buff.appendLong(body);
}
}
代码示例来源:origin: vert-x/mod-lang-php
/**
* Appends the given value to the buffer.
*/
public Buffer append(Env env, Value value) {
if (value.isLong()) {
buffer.appendLong(value.toLong());
}
else if (value.isDouble()) {
buffer.appendDouble(value.toDouble());
}
else if (value.isNumeric()) {
buffer.appendInt(value.toInt());
}
else if (value.isString()) {
buffer.appendString(value.toString());
}
else if (value.isObject()) {
buffer.appendBuffer((org.vertx.java.core.buffer.Buffer) value.toJavaObject(env, org.vertx.java.core.buffer.Buffer.class));
}
return this;
}
内容来源于网络,如有侵权,请联系作者删除!