本文整理了Java中io.netty.buffer.ByteBuf.getLong()
方法的一些代码示例,展示了ByteBuf.getLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.getLong()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:getLong
[英]Gets a 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: netty/netty
@Override
public long getLong(int index) {
return buf.getLong(index);
}
代码示例来源:origin: netty/netty
@Override
public long getLongLE(int index) {
return buf.getLong(index);
}
代码示例来源:origin: redisson/redisson
@Override
public long getLongLE(int index) {
return buf.getLong(index);
}
代码示例来源:origin: netty/netty
@Override
public long getLong(int index) {
checkIndex(index, 8);
return buffer.getLong(index);
}
代码示例来源:origin: netty/netty
@Override
public long getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: netty/netty
@Override
protected long _getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: netty/netty
@Override
public long getLong(int index) {
return ByteBufUtil.swapLong(buf.getLong(index));
}
代码示例来源:origin: netty/netty
@Override
public long getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: netty/netty
@Override
protected long _getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: redisson/redisson
@Override
public long getLong(int index) {
checkIndex(index, 8);
return buffer.getLong(index);
}
代码示例来源:origin: redisson/redisson
@Override
public long getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: redisson/redisson
@Override
public long getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: redisson/redisson
@Override
protected long _getLong(int index) {
return unwrap().getLong(index);
}
代码示例来源:origin: netty/netty
@Override
protected long _getLong(int index) {
return unwrap().getLong(idx(index));
}
代码示例来源:origin: netty/netty
@Override
public long getLong(int index) {
checkIndex0(index, 8);
return unwrap().getLong(idx(index));
}
代码示例来源:origin: redisson/redisson
@Override
public long getLong(int index) {
checkIndex0(index, 8);
return unwrap().getLong(idx(index));
}
代码示例来源:origin: netty/netty
@Override
protected long _getLong(int index) {
Component c = findComponent(index);
if (index + 8 <= c.endOffset) {
return c.buf.getLong(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getInt(index) & 0xffffffffL) << 32 | _getInt(index + 4) & 0xffffffffL;
} else {
return _getInt(index) & 0xFFFFFFFFL | (_getInt(index + 4) & 0xFFFFFFFFL) << 32;
}
}
代码示例来源:origin: netty/netty
@Override
protected long _getLong(int index) {
Component c = findComponent0(index);
if (index + 8 <= c.endOffset) {
return c.buf.getLong(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getInt(index) & 0xffffffffL) << 32 | _getInt(index + 4) & 0xffffffffL;
} else {
return _getInt(index) & 0xFFFFFFFFL | (_getInt(index + 4) & 0xFFFFFFFFL) << 32;
}
}
代码示例来源:origin: redisson/redisson
@Override
protected long _getLong(int index) {
Component c = findComponent(index);
if (index + 8 <= c.endOffset) {
return c.buf.getLong(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getInt(index) & 0xffffffffL) << 32 | _getInt(index + 4) & 0xffffffffL;
} else {
return _getInt(index) & 0xFFFFFFFFL | (_getInt(index + 4) & 0xFFFFFFFFL) << 32;
}
}
代码示例来源:origin: redisson/redisson
@Override
protected long _getLong(int index) {
Component c = findComponent0(index);
if (index + 8 <= c.endOffset) {
return c.buf.getLong(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (_getInt(index) & 0xffffffffL) << 32 | _getInt(index + 4) & 0xffffffffL;
} else {
return _getInt(index) & 0xFFFFFFFFL | (_getInt(index + 4) & 0xFFFFFFFFL) << 32;
}
}
内容来源于网络,如有侵权,请联系作者删除!