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

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

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

Buffer.sliceFromMark介绍

暂无

代码示例

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

int l=_buffer.getIndex()-_buffer.markIndex()-1;
  progress++;
  _handler.onFrame((byte)0,_opcode,_buffer.sliceFromMark(l));
  _buffer.setMarkIndex(-1);
  if (_buffer.length()==0)
if (_buffer.length()<_length)
  break charloop;
Buffer data=_buffer.sliceFromMark(_length);
_buffer.skip(_length);
_state=STATE_START;

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

int l=_buffer.getIndex()-_buffer.markIndex()-1;
  progress++;
  _handler.onFrame((byte)0,_opcode,_buffer.sliceFromMark(l));
  _buffer.setMarkIndex(-1);
  if (_buffer.length()==0)
if (_buffer.length()<_length)
  break charloop;
Buffer data=_buffer.sliceFromMark(_length);
_buffer.skip(_length);
_state=STATE_START;

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

int l=_buffer.getIndex()-_buffer.markIndex()-1;
  progress++;
  _handler.onFrame((byte)0,_opcode,_buffer.sliceFromMark(l));
  _buffer.setMarkIndex(-1);
  if (_buffer.length()==0)
if (_buffer.length()<_length)
  break charloop;
Buffer data=_buffer.sliceFromMark(_length);
_buffer.skip(_length);
_state=STATE_START;

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

_handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer.sliceFromMark(), null);
_persistent=false;
_state=STATE_SEEKING_EOF;
  _handler.startResponse(version=HttpVersions.CACHE.lookup(_tok0), _responseStatus,_buffer.sliceFromMark());
else
  _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, version=HttpVersions.CACHE.lookup(_buffer.sliceFromMark()));
_eol=ch;
_persistent=HttpVersions.CACHE.getOrdinal(version)>=HttpVersions.HTTP_1_1_ORDINAL;

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

_handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer.sliceFromMark(), null);
_persistent=false;
_state=STATE_SEEKING_EOF;
  _handler.startResponse(version=HttpVersions.CACHE.lookup(_tok0), _responseStatus,_buffer.sliceFromMark());
else
  _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, version=HttpVersions.CACHE.lookup(_buffer.sliceFromMark()));
_eol=ch;
_persistent=HttpVersions.CACHE.getOrdinal(version)>=HttpVersions.HTTP_1_1_ORDINAL;

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

_handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer.sliceFromMark(), null);
_persistent=false;
_state=STATE_SEEKING_EOF;
  _handler.startResponse(version=HttpVersions.CACHE.lookup(_tok0), _responseStatus,_buffer.sliceFromMark());
else
  _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, version=HttpVersions.CACHE.lookup(_buffer.sliceFromMark()));
_eol=ch;
_persistent=HttpVersions.CACHE.getOrdinal(version)>=HttpVersions.HTTP_1_1_ORDINAL;

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

_handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer.sliceFromMark(), null);
_persistent=false;
_state=STATE_SEEKING_EOF;
  _handler.startResponse(version=HttpVersions.CACHE.lookup(_tok0), _responseStatus,_buffer.sliceFromMark());
else
  _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, version=HttpVersions.CACHE.lookup(_buffer.sliceFromMark()));
_eol=ch;
_persistent=HttpVersions.CACHE.getOrdinal(version)>=HttpVersions.HTTP_1_1_ORDINAL;

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

_handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer.sliceFromMark(), null);
_persistent=false;
_state=STATE_SEEKING_EOF;
  _handler.startResponse(version=HttpVersions.CACHE.lookup(_tok0), _responseStatus,_buffer.sliceFromMark());
else
  _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, version=HttpVersions.CACHE.lookup(_buffer.sliceFromMark()));
_eol=ch;
_persistent=HttpVersions.CACHE.getOrdinal(version)>=HttpVersions.HTTP_1_1_ORDINAL;

相关文章