本文整理了Java中org.vertx.java.core.buffer.Buffer.getBuffer()
方法的一些代码示例,展示了Buffer.getBuffer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.getBuffer()
方法的具体详情如下:
包路径:org.vertx.java.core.buffer.Buffer
类名称:Buffer
方法名:getBuffer
[英]Returns a copy of a sub-sequence the Buffer as a Buffer starting at position startand ending at position end - 1
[中]将子序列的副本返回到缓冲区,作为从位置START开始到位置end-1结束的缓冲区
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
protected Buffer peekBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
return buff.getBuffer(readStart, readEnd);
}
}
代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq
protected Buffer readBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
bytesDecoded += readEnd - readStart;
int offset = readStart;
readStart = readEnd;
return buff.getBuffer(offset, readEnd);
}
}
代码示例来源:origin: io.fabric8/gateway-core
protected Buffer readBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
bytesDecoded += readEnd-readStart;
int offset = readStart;
readStart = readEnd;
return buff.getBuffer(offset, readEnd);
}
}
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
protected Buffer readBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
bytesDecoded += readEnd - readStart;
int offset = readStart;
readStart = readEnd;
return buff.getBuffer(offset, readEnd);
}
}
代码示例来源:origin: jboss-fuse/fabric8
protected Buffer readBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
bytesDecoded += readEnd-readStart;
int offset = readStart;
readStart = readEnd;
return buff.getBuffer(offset, readEnd);
}
}
代码示例来源:origin: jboss-fuse/fabric8
protected Buffer peekBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
return buff.getBuffer(readStart, readEnd);
}
}
代码示例来源:origin: io.fabric8/gateway-core
protected Buffer peekBytes(int length) {
readEnd = readStart + length;
if (buff.length() < readEnd) {
return null;
} else {
return buff.getBuffer(readStart, readEnd);
}
}
代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8/gateway-core
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while (pos > 0 && (self.getByte(pos - 1) <= ' ')) {
pos--;
}
return (pos == length - 1) ? self : self.getBuffer(0, pos);
}
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while (pos > 0 && (self.getByte(pos - 1) <= ' ')) {
pos--;
}
return (pos == length - 1) ? self : self.getBuffer(0, pos);
}
代码示例来源:origin: io.fabric8.jube.images.fabric8/fabric8-mq
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while (pos > 0 && (self.getByte(pos - 1) <= ' ')) {
pos--;
}
return (pos == length - 1) ? self : self.getBuffer(0, pos);
}
代码示例来源:origin: jboss-fuse/fabric8
static public Buffer trimFront(Buffer self) {
int length = self.length();
int pos = 0;
while ((pos < length) && (self.getByte(pos) <= ' ')) {
pos++;
}
return (pos == 0) ? self : self.getBuffer(pos, length);
}
代码示例来源:origin: io.fabric8.ipaas.apps/fabric8mq
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while (pos > 0 && (self.getByte(pos - 1) <= ' ')) {
pos--;
}
return (pos == length - 1) ? self : self.getBuffer(0, pos);
}
代码示例来源:origin: jboss-fuse/fabric8
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while ( pos > 0 && (self.getByte(pos-1) <= ' ')) {
pos--;
}
return (pos == length-1) ? self : self.getBuffer(0, pos);
}
代码示例来源:origin: org.vert-x/vertx-core
private void parseFixed() {
int len = buff.length();
while (len - start >= recordSize && !reset) {
int end = start + recordSize;
Buffer ret = buff.getBuffer(start, end);
start = end;
pos = start - 1;
output.handle(ret);
}
}
代码示例来源:origin: io.fabric8/gateway-core
static public Buffer trimEnd(Buffer self) {
int length = self.length();
int pos = length;
while ( pos > 0 && (self.getByte(pos-1) <= ' ')) {
pos--;
}
return (pos == length-1) ? self : self.getBuffer(0, pos);
}
内容来源于网络,如有侵权,请联系作者删除!