io.netty.buffer.ByteBuf.setLongLE()方法的使用及代码示例

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

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

ByteBuf.setLongLE介绍

[英]Sets the specified 64-bit long integer at the specified absolute index in this buffer in Little Endian Byte Order. This method does not modify readerIndex or writerIndex of this buffer.
[中]在该缓冲区中指定的绝对索引处以小尾端字节顺序设置指定的64位长整数。此方法不修改此缓冲区的readerIndex或writerIndex。

代码示例

代码示例来源:origin: netty/netty

@Override
public ByteBuf setLongLE(int index, long value) {
  buf.setLongLE(index, value);
  return this;
}

代码示例来源:origin: redisson/redisson

@Override
public ByteBuf setLongLE(int index, long value) {
  buf.setLongLE(index, value);
  return this;
}

代码示例来源:origin: netty/netty

/**
 * Sets the specified 64-bit floating-point number at the specified
 * absolute {@code index} in this buffer in Little Endian Byte Order.
 * This method does not modify {@code readerIndex} or {@code writerIndex} of
 * this buffer.
 *
 * @throws IndexOutOfBoundsException
 *         if the specified {@code index} is less than {@code 0} or
 *         {@code index + 8} is greater than {@code this.capacity}
 */
public ByteBuf setDoubleLE(int index, double value) {
  return setLongLE(index, Double.doubleToRawLongBits(value));
}

代码示例来源:origin: wildfly/wildfly

@Override
public ByteBuf setLongLE(int index, long value) {
  buf.setLongLE(index, value);
  return this;
}

代码示例来源:origin: redisson/redisson

/**
 * Sets the specified 64-bit floating-point number at the specified
 * absolute {@code index} in this buffer in Little Endian Byte Order.
 * This method does not modify {@code readerIndex} or {@code writerIndex} of
 * this buffer.
 *
 * @throws IndexOutOfBoundsException
 *         if the specified {@code index} is less than {@code 0} or
 *         {@code index + 8} is greater than {@code this.capacity}
 */
public ByteBuf setDoubleLE(int index, double value) {
  return setLongLE(index, Double.doubleToRawLongBits(value));
}

代码示例来源:origin: netty/netty

@Override
protected void _setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
}

代码示例来源:origin: wildfly/wildfly

/**
 * Sets the specified 64-bit floating-point number at the specified
 * absolute {@code index} in this buffer in Little Endian Byte Order.
 * This method does not modify {@code readerIndex} or {@code writerIndex} of
 * this buffer.
 *
 * @throws IndexOutOfBoundsException
 *         if the specified {@code index} is less than {@code 0} or
 *         {@code index + 8} is greater than {@code this.capacity}
 */
public ByteBuf setDoubleLE(int index, double value) {
  return setLongLE(index, Double.doubleToRawLongBits(value));
}

代码示例来源:origin: netty/netty

@Override
public ByteBuf setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
  return this;
}

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

public Buffer setLongLE(int pos, long l) {
 ensureWritable(pos, 8);
 buffer.setLongLE(pos, l);
 return this;
}

代码示例来源:origin: redisson/redisson

@Override
public ByteBuf setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
  return this;
}

代码示例来源:origin: redisson/redisson

@Override
protected void _setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
}

代码示例来源:origin: wildfly/wildfly

@Override
public ByteBuf setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
  return this;
}

代码示例来源:origin: wildfly/wildfly

@Override
protected void _setLongLE(int index, long value) {
  unwrap().setLongLE(index, value);
}

代码示例来源:origin: netty/netty

@Override
protected void _setLongLE(int index, long value) {
  unwrap().setLongLE(idx(index), value);
}

代码示例来源:origin: redisson/redisson

@Override
protected void _setLongLE(int index, long value) {
  unwrap().setLongLE(idx(index), value);
}

代码示例来源:origin: netty/netty

@Override
public ByteBuf setLongLE(int index, long value) {
  checkIndex0(index, 8);
  unwrap().setLongLE(idx(index), value);
  return this;
}

代码示例来源:origin: redisson/redisson

@Override
public ByteBuf setLongLE(int index, long value) {
  checkIndex0(index, 8);
  unwrap().setLongLE(idx(index), value);
  return this;
}

代码示例来源:origin: wildfly/wildfly

@Override
public ByteBuf setLongLE(int index, long value) {
  checkIndex0(index, 8);
  unwrap().setLongLE(idx(index), value);
  return this;
}

代码示例来源:origin: netty/netty

@Override
protected void _setLongLE(int index, long value) {
  Component c = findComponent0(index);
  if (index + 8 <= c.endOffset) {
    c.buf.setLongLE(c.idx(index), value);
  } else if (order() == ByteOrder.BIG_ENDIAN) {
    _setIntLE(index, (int) value);
    _setIntLE(index + 4, (int) (value >>> 32));
  } else {
    _setIntLE(index, (int) (value >>> 32));
    _setIntLE(index + 4, (int) value);
  }
}

代码示例来源:origin: redisson/redisson

@Override
protected void _setLongLE(int index, long value) {
  Component c = findComponent0(index);
  if (index + 8 <= c.endOffset) {
    c.buf.setLongLE(c.idx(index), value);
  } else if (order() == ByteOrder.BIG_ENDIAN) {
    _setIntLE(index, (int) value);
    _setIntLE(index + 4, (int) (value >>> 32));
  } else {
    _setIntLE(index, (int) (value >>> 32));
    _setIntLE(index + 4, (int) value);
  }
}

相关文章

ByteBuf类方法