org.glassfish.grizzly.Buffer.toByteBufferArray()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.glassfish.grizzly.Buffer.toByteBufferArray()方法的一些代码示例,展示了Buffer.toByteBufferArray()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.toByteBufferArray()方法的具体详情如下:
包路径:org.glassfish.grizzly.Buffer
类名称:Buffer
方法名:toByteBufferArray

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);
  }
}

相关文章