本文整理了Java中org.glassfish.grizzly.Buffer.putLong()
方法的一些代码示例,展示了Buffer.putLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.putLong()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Buffer
类名称:Buffer
方法名:putLong
[英]Absolute put method for writing a long value (optional operation).
Writes eight bytes containing the given long value, in the current byte order, into this buffer at the given index.
[中]用于写入长值的绝对put方法(可选操作)。
按当前字节顺序将包含给定长值的八个字节写入给定索引处的缓冲区。
代码示例来源:origin: org.glassfish.shoal/shoal-gms-impl
@Override
public Buffer putLong(final long value) {
grizzlyBuffer.putLong(value);
return this;
}
代码示例来源:origin: org.shoal/shoal-gms-impl
@Override
public Buffer putLong(final int index, final long value) {
grizzlyBuffer.putLong(index, value);
return this;
}
代码示例来源:origin: org.glassfish.shoal/shoal-gms-impl
@Override
public Buffer putLong(final int index, final long value) {
grizzlyBuffer.putLong(index, value);
return this;
}
代码示例来源:origin: org.shoal/shoal-gms-impl
@Override
public Buffer putLong(final long value) {
grizzlyBuffer.putLong(value);
return this;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http2
@Override
public Buffer toBuffer(final MemoryManager memoryManager) {
final Buffer buffer = memoryManager.allocate(FRAME_HEADER_SIZE + 8);
serializeFrameHeader(buffer);
buffer.putLong(opaqueData);
buffer.trim();
return buffer;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
代码示例来源:origin: javaee/grizzly
@Override
public BuffersBuffer putLong(final int index, final long value) {
checkDispose();
checkReadOnly();
checkIndex(index);
if (upperBound - index >= 8) {
activeBuffer.putLong(toActiveBufferPos(index), value);
} else {
if (bigEndian) {
putLongB(index, value);
} else {
putLongL(index, value);
}
}
return this;
}
内容来源于网络,如有侵权,请联系作者删除!