本文整理了Java中io.netty.buffer.ByteBuf.getShortLE()
方法的一些代码示例,展示了ByteBuf.getShortLE()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuf.getShortLE()
方法的具体详情如下:
包路径:io.netty.buffer.ByteBuf
类名称:ByteBuf
方法名:getShortLE
[英]Gets a 16-bit short 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.
[中]获取此缓冲区中指定绝对索引处的16位短整数,以小尾数字节顺序。此方法不修改此缓冲区的readerIndex或writerIndex。
代码示例来源:origin: netty/netty
@Override
public short getShortLE(int index) {
return buf.getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
public short getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
public short getShortLE(int index) {
checkIndex(index, 2);
return buffer.getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
public short getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: redisson/redisson
@Override
public short getShortLE(int index) {
checkIndex(index, 2);
return buffer.getShortLE(index);
}
代码示例来源:origin: redisson/redisson
@Override
public short getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: redisson/redisson
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: redisson/redisson
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: redisson/redisson
@Override
public short getShortLE(int index) {
return unwrap().getShortLE(index);
}
代码示例来源:origin: netty/netty
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(idx(index));
}
代码示例来源:origin: redisson/redisson
@SuppressWarnings("deprecation")
private static short shortBE(ByteBuf buffer, int offset) {
return buffer.order() == ByteOrder.BIG_ENDIAN ?
buffer.getShort(offset) : buffer.getShortLE(offset);
}
代码示例来源:origin: redisson/redisson
@Override
protected short _getShortLE(int index) {
return unwrap().getShortLE(idx(index));
}
代码示例来源:origin: netty/netty
@Override
public short getShortLE(int index) {
checkIndex0(index, 2);
return unwrap().getShortLE(idx(index));
}
代码示例来源:origin: redisson/redisson
@Override
public short getShortLE(int index) {
checkIndex0(index, 2);
return unwrap().getShortLE(idx(index));
}
代码示例来源:origin: netty/netty
@Override
protected short _getShortLE(int index) {
Component c = findComponent(index);
if (index + 2 <= c.endOffset) {
return c.buf.getShortLE(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (short) (_getByte(index) & 0xff | (_getByte(index + 1) & 0xff) << 8);
} else {
return (short) ((_getByte(index) & 0xff) << 8 | _getByte(index + 1) & 0xff);
}
}
代码示例来源:origin: netty/netty
@Override
protected short _getShortLE(int index) {
Component c = findComponent0(index);
if (index + 2 <= c.endOffset) {
return c.buf.getShortLE(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (short) (_getByte(index) & 0xff | (_getByte(index + 1) & 0xff) << 8);
} else {
return (short) ((_getByte(index) & 0xff) << 8 | _getByte(index + 1) & 0xff);
}
}
代码示例来源:origin: redisson/redisson
@Override
protected short _getShortLE(int index) {
Component c = findComponent(index);
if (index + 2 <= c.endOffset) {
return c.buf.getShortLE(index - c.offset);
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (short) (_getByte(index) & 0xff | (_getByte(index + 1) & 0xff) << 8);
} else {
return (short) ((_getByte(index) & 0xff) << 8 | _getByte(index + 1) & 0xff);
}
}
代码示例来源:origin: redisson/redisson
@Override
protected short _getShortLE(int index) {
Component c = findComponent0(index);
if (index + 2 <= c.endOffset) {
return c.buf.getShortLE(c.idx(index));
} else if (order() == ByteOrder.BIG_ENDIAN) {
return (short) (_getByte(index) & 0xff | (_getByte(index + 1) & 0xff) << 8);
} else {
return (short) ((_getByte(index) & 0xff) << 8 | _getByte(index + 1) & 0xff);
}
}
内容来源于网络,如有侵权,请联系作者删除!