本文整理了Java中org.glassfish.grizzly.Buffer.getShort()
方法的一些代码示例,展示了Buffer.getShort()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.getShort()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Buffer
类名称:Buffer
方法名:getShort
[英]Relative get method for reading a short value.
Reads the next two bytes at this buffer's current position, composing them into a short value according to the current byte order, and then increments the position by two.
[中]用于读取短值的相对get方法。
读取该缓冲区当前位置的下两个字节,根据当前字节顺序将它们组合成一个短值,然后将该位置增加两个。
代码示例来源:origin: org.glassfish.shoal/shoal-gms-impl
@Override
public short getShort(final int index) {
return grizzlyBuffer.getShort(index);
}
代码示例来源:origin: org.glassfish.shoal/shoal-gms-impl
@Override
public short getShort() {
return grizzlyBuffer.getShort();
}
代码示例来源:origin: javaee/grizzly
static int readShort(final Buffer buffer, final int offset) {
return buffer.getShort(offset) & 0xFFFF;
}
代码示例来源:origin: javaee/grizzly
static int readShort(final Buffer buffer, final int offset) {
return buffer.getShort(offset) & 0xFFFF;
}
代码示例来源:origin: org.shoal/shoal-gms-impl
@Override
public short getShort() {
return grizzlyBuffer.getShort();
}
代码示例来源:origin: org.shoal/shoal-gms-impl
@Override
public short getShort(final int index) {
return grizzlyBuffer.getShort(index);
}
代码示例来源:origin: javaee/grizzly
static int readShort(final Buffer buffer, final int offset) {
return buffer.getShort(offset) & 0xFFFF;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
static int readShort(final Buffer buffer, final int offset) {
return buffer.getShort(offset) & 0xFFFF;
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: javaee/grizzly
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework
@Override
public short getShort(final int index) {
checkDispose();
checkIndex(index);
if (upperBound - index >= 2) {
return activeBuffer.getShort(toActiveBufferPos(index));
} else {
return ((bigEndian) ? makeShortB(index) : makeShortL(index));
}
}
内容来源于网络,如有侵权,请联系作者删除!