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

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

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

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

相关文章