本文整理了Java中com.couchbase.client.deps.io.netty.buffer.ByteBuf.setLong()
方法的一些代码示例,展示了ByteBuf.setLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.setLong()
方法的具体详情如下:
包路径:com.couchbase.client.deps.io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:setLong
[英]Sets the specified 64-bit long integer at the specified absolute index in this buffer. This method does not modify readerIndex or writerIndex of this buffer.
[中]在此缓冲区中指定的绝对索引处设置指定的64位长整数。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: com.couchbase.client/core-io
@Override
public ByteBuf setLong(int index, long value) {
buf.setLong(index, value);
return this;
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
public ByteBuf setLong(int index, long value) {
buf.setLong(index, value);
return this;
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
public ByteBuf setLong(int index, long value) {
unwrap().setLong(index, value);
return this;
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
public ByteBuf setLong(int index, long value) {
unwrap().setLong(index, value);
return this;
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
public ByteBuf setLong(int index, long value) {
buf.setLong(index, ByteBufUtil.swapLong(value));
return this;
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
protected void _setLong(int index, long value) {
unwrap().setLong(index, value);
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
protected void _setLong(int index, long value) {
unwrap().setLong(index, value);
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
public ByteBuf setLong(int index, long value) {
buf.setLong(index, ByteBufUtil.swapLong(value));
return this;
}
代码示例来源:origin: couchbase/java-dcp-client
public static void startSeqno(final ByteBuf buffer, long seqnoStart) {
MessageUtil.getExtras(buffer).setLong(8, seqnoStart);
}
代码示例来源:origin: couchbase/java-dcp-client
public static void snapshotEndSeqno(final ByteBuf buffer, long snapshotSeqnoEnd) {
MessageUtil.getExtras(buffer).setLong(40, snapshotSeqnoEnd);
}
代码示例来源:origin: couchbase/java-dcp-client
public static void snapshotStartSeqno(final ByteBuf buffer, long snapshotSeqnoStart) {
MessageUtil.getExtras(buffer).setLong(32, snapshotSeqnoStart);
}
代码示例来源:origin: couchbase/java-dcp-client
public static void endSeqno(final ByteBuf buffer, long seqnoEnd) {
MessageUtil.getExtras(buffer).setLong(16, seqnoEnd);
}
代码示例来源:origin: couchbase/java-dcp-client
public static void vbuuid(final ByteBuf buffer, long uuid) {
MessageUtil.getExtras(buffer).setLong(24, uuid);
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
protected void _setLong(int index, long value) {
unwrap().setLong(idx(index), value);
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
protected void _setLong(int index, long value) {
unwrap().setLong(idx(index), value);
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
public ByteBuf setLong(int index, long value) {
checkIndex0(index, 8);
unwrap().setLong(idx(index), value);
return this;
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
public ByteBuf setLong(int index, long value) {
checkIndex0(index, 8);
unwrap().setLong(idx(index), value);
return this;
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
protected void _setLong(int index, long value) {
Component c = findComponent(index);
if (index + 8 <= c.endOffset) {
c.buf.setLong(index - c.offset, value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setInt(index, (int) (value >>> 32));
_setInt(index + 4, (int) value);
} else {
_setInt(index, (int) value);
_setInt(index + 4, (int) (value >>> 32));
}
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
protected void _setLong(int index, long value) {
Component c = findComponent(index);
if (index + 8 <= c.endOffset) {
c.buf.setLong(index - c.offset, value);
} else if (order() == ByteOrder.BIG_ENDIAN) {
_setInt(index, (int) (value >>> 32));
_setInt(index + 4, (int) value);
} else {
_setInt(index, (int) value);
_setInt(index + 4, (int) (value >>> 32));
}
}
内容来源于网络,如有侵权,请联系作者删除!