com.couchbase.client.deps.io.netty.buffer.ByteBuf.setLong()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(137)

本文整理了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

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));
  }
}

相关文章