本文整理了Java中org.eclipse.jetty.io.Buffer.get()
方法的一些代码示例,展示了Buffer.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.get()
方法的具体详情如下:
包路径:org.eclipse.jetty.io.Buffer
类名称:Buffer
方法名:get
[英]Get the byte at the current getIndex and increment it.
[中]获取当前getIndex处的字节并将其递增。
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static byte getByte(Buffer _buffer)
{
return _buffer.get();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static Buffer getHeaderName(Buffer _buffer, View tok)
{
int len=((_buffer.peek()&0xFF)<<8)|(_buffer.peek(_buffer.getIndex()+1)&0xFF);
if ((0xFF00&len)==0xA000)
{
_buffer.skip(1);
return Ajp13RequestHeaders.CACHE.get(_buffer.get());
}
int start=_buffer.getIndex();
tok.update(start+2,start+len+2);
_buffer.skip(len+3);
return tok;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
buffer=buffer.asMutableBuffer();
int length=0xff&buffer.get();
if (length>=0x7e)
length=0;
while(b-->0)
length=0x100*length+(0xff&buffer.get());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static int getInt(Buffer _buffer)
{
return ((_buffer.get()&0xFF)<<8)|(_buffer.get()&0xFF);
}
代码示例来源:origin: org.eclipse.jetty/jetty-websocket
buffer=buffer.asMutableBuffer();
int length=0xff&buffer.get();
if (length>=0x7e)
length=0;
while(b-->0)
length=0x100*length+(0xff&buffer.get());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static Buffer get(Buffer buffer, int length)
{
return buffer.get(length);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
buffer=buffer.asMutableBuffer();
int length=0xff&buffer.get();
if (length>=0x7e)
length=0;
while(b-->0)
length=0x100*length+(0xff&buffer.get());
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static boolean getBool(Buffer _buffer)
{
return _buffer.get()>0;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
_eol=_buffer.get();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static Buffer getMethod(Buffer _buffer)
{
return Ajp13PacketMethods.CACHE.get(_buffer.get());
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
_eol=_buffer.get();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int l=-1;
Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
if (content!=null)
l= content.get(b, off, len);
else if (_connection.isEarlyEOF())
throw new EofException("early EOF");
return l;
}
代码示例来源:origin: org.eclipse.jetty/jetty-websocket
b=_buffer.get();
_opcode=b;
if (_opcode<0)
b=_buffer.get();
if ((b&0xff)==0xff)
b=_buffer.get();
_length=_length<<7 | (0x7f&b);
if (b>=0)
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int l=-1;
Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
if (content!=null)
l= content.get(b, off, len);
else if (_connection.isEarlyEOF())
throw new EofException("early EOF");
return l;
}
代码示例来源:origin: org.eclipse.jetty/http
_eol=_buffer.get();
代码示例来源:origin: org.eclipse.jetty/server
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int l=-1;
Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
if (content!=null)
l= content.get(b, off, len);
else if (_connection.isEarlyEOF())
throw new EofException("early EOF");
return l;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
_eol=_buffer.get();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int l=-1;
Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
if (content!=null)
l= content.get(b, off, len);
else if (_connection.isEarlyEOF())
throw new EofException("early EOF");
return l;
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
_eol=_buffer.get();
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
@Override
public int read(byte[] b, int off, int len) throws IOException
{
int l=-1;
Buffer content=_parser.blockForContent(_connection.getMaxIdleTime());
if (content!=null)
l= content.get(b, off, len);
else if (_connection.isEarlyEOF())
throw new EofException("early EOF");
return l;
}
内容来源于网络,如有侵权,请联系作者删除!