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

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

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

Buffer.limit介绍

[英]Returns this buffer's limit.
[中]返回此缓冲区的限制。

代码示例

代码示例来源:origin: javaee/grizzly

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: javaee/grizzly

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: javaee/grizzly

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: javaee/grizzly

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: javaee/grizzly

public static void setPositionLimit(final Buffer buffer,
    final int position, final int limit) {
  buffer.limit(limit);
  buffer.position(position);
}

代码示例来源:origin: javaee/grizzly

/**
 * Fill the {@link Buffer} with the specific byte value. {@link Buffer}'s
 * position won't be changed.
 *
 * @param buffer {@link Buffer}
 * @param b value
 */
public static void fill(final Buffer buffer, final byte b) {
  fill(buffer, buffer.position(), buffer.limit(), b);
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Fill the {@link Buffer} with the specific byte value. {@link Buffer}'s
 * position won't be changed.
 *
 * @param buffer {@link Buffer}
 * @param b value
 */
public static void fill(final Buffer buffer, final byte b) {
  fill(buffer, buffer.position(), buffer.limit(), b);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Fill the {@link Buffer} with the specific byte value. {@link Buffer}'s
 * position won't be changed.
 *
 * @param buffer {@link Buffer}
 * @param b value
 */
public static void fill(final Buffer buffer, final byte b) {
  fill(buffer, buffer.position(), buffer.limit(), b);
}

代码示例来源:origin: javaee/grizzly

@Override
public ByteBufferWrapper put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public ByteBufferWrapper put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public BuffersBuffer put(Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public HeapBuffer put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public ByteBufferWrapper put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public ByteBufferWrapper put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public HeapBuffer put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public BuffersBuffer put(Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public HeapBuffer put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

代码示例来源:origin: javaee/grizzly

@Override
public ByteBufferWrapper put(final Buffer src) {
  put(src, src.position(), src.remaining());
  src.position(src.limit());
  return this;
}

相关文章