org.eclipse.jetty.io.Buffer.put()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(96)

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

Buffer.put介绍

[英]Put a byte to the current getIndex and increment the getIndex.
[中]将一个字节放入当前getIndex并递增getIndex。

代码示例

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public static void putCRLF(Buffer buffer)
{
  buffer.put((byte)13);
  buffer.put((byte)10);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public static void putCRLF(Buffer buffer)
{
  buffer.put((byte)13);
  buffer.put((byte)10);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

private void addInt(int i)
{
  _buffer.put((byte)((i >> 8) & 0xFF));
  _buffer.put((byte)(i & 0xFF));
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

private synchronized void bufferPut(byte[] data) throws IOException
{
  if (_maskGen!=null)
    for (int i=0;i<data.length;i++)
      data[i]^=_mask[+_m++%4];
  _buffer.put(data);
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

private synchronized void bufferPut(byte data) throws IOException
{
  _buffer.put((byte)(data^_mask[+_m++%4]));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

private synchronized void bufferPut(byte[] data) throws IOException
{
  if (_maskGen!=null)
    for (int i=0;i<data.length;i++)
      data[i]^=_mask[+_m++%4];
  _buffer.put(data);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

void uncheckedAddContent(int b)
{
  _buffer.put((byte)b);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public static void putCRLF(Buffer buffer)
{
  buffer.put((byte)13);
  buffer.put((byte)10);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public static void putCRLF(Buffer buffer)
{
  buffer.put((byte)13);
  buffer.put((byte)10);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

private void addBuffer(Buffer b)
{
  if (b == null)
  {
    addInt(0xFFFF);
    return;
  }
  addInt(b.length());
  _buffer.put(b);
  _buffer.put((byte)0);
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

private synchronized void bufferPut(byte datum, long blockFor) throws IOException
{
  if (_buffer==null)
    _buffer=_buffers.getDirectBuffer();
  _buffer.put(datum);
  if (_buffer.space() == 0)
    expelBuffer(blockFor);
}

代码示例来源:origin: org.eclipse.jetty/jetty-websocket

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

private synchronized void bufferPut(byte datum, long blockFor) throws IOException
{
  if (_buffer==null)
    _buffer=_buffers.getDirectBuffer();
  _buffer.put(datum);
  if (_buffer.space() == 0)
    expelBuffer(blockFor);
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public void fill(Buffer buffer)
{
  if (buffer!=null && buffer.length()>0)
  {
    if (_buffer==null)
      _buffer=_buffers.getBuffer();
    _buffer.put(buffer);
    buffer.clear();
  }
}

相关文章