本文整理了Java中org.glassfish.grizzly.Buffer.toByteBufferArray()
方法的一些代码示例,展示了Buffer.toByteBufferArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.toByteBufferArray()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Buffer
类名称:Buffer
方法名:toByteBufferArray
[英]Converts this Buffer
to a ByteBuffer per #toByteBuffer()and returns a ByteBufferArray containing the converted ByteBuffer. It is guaranteed that returned array's ByteBuffer elements' content is a shared subsequence of this buffer's content no matter if it's a CompositeBuffer or not.
[中]根据#toByteBuffer()将此Buffer
转换为ByteBuffer,并返回包含已转换ByteBuffer的ByteBuffer数组。可以保证返回数组的ByteBuffer元素的内容是该缓冲区内容的共享子序列,无论它是否为CompositeBuffer。
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final ByteBufferArray array) {
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public final ByteBufferArray toByteBufferArray(final int position, final int limit) {
final ByteBufferArray array = ByteBufferArray.create();
if (position == 0 && limit == capacity) {
for (int i = 0; i < buffersSize; i++) {
buffers[i].toByteBufferArray(array);
}
return array;
} else {
return toByteBufferArray(array, position, limit);
}
}
内容来源于网络,如有侵权,请联系作者删除!