/** * Read an enum field value from the stream. Caller is responsible for * converting the numeric value to an actual enum. */ public int readEnum() throws IOException { return readRawVarint32(); }
/** Read a {@code string} field value from the stream. */ public String readString() throws IOException { int size = readRawVarint32(); Buffer data = readRawBytes(size); return new String(data.data, data.offset, data.length, "UTF-8"); }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
@Override public T mergeFramed(CodedInputStream input) throws IOException { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); T rc = mergeUnframed(input.readRawBytes(length)); input.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }