protected void load() { if (!decoded) { decoded = true; try { Buffer originalForm = encodedForm; encodedForm=null; CodedInputStream input = new CodedInputStream(originalForm); mergeUnframed(input); input.checkLastTagWas(0); // We need to reset the encoded form because the mergeUnframed // from a stream clears it out. encodedForm = originalForm; checktInitialized(); } catch (Throwable e) { throw new RuntimeException("Deferred message decoding failed: " + e.getMessage(), e); } } }
protected void loadAndClear() { super.loadAndClear(); load(); encodedForm = null; }
@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; }
@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; }
protected void load() { if (!decoded) { decoded = true; try { Buffer originalForm = encodedForm; encodedForm=null; CodedInputStream input = new CodedInputStream(originalForm); mergeUnframed(input); input.checkLastTagWas(0); // We need to reset the encoded form because the mergeUnframed // from a stream clears it out. encodedForm = originalForm; checktInitialized(); } catch (Throwable e) { throw new RuntimeException("Deferred message decoding failed: " + e.getMessage(), e); } } }
protected void loadAndClear() { super.loadAndClear(); load(); encodedForm = null; }
@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; }
protected void load() { if (!decoded) { decoded = true; try { Buffer originalForm = encodedForm; encodedForm=null; CodedInputStream input = new CodedInputStream(originalForm); mergeUnframed(input); input.checkLastTagWas(0); // We need to reset the encoded form because the mergeUnframed // from a stream clears it out. encodedForm = originalForm; checktInitialized(); } catch (Throwable e) { throw new RuntimeException("Deferred message decoding failed: " + e.getMessage(), e); } } }
protected void loadAndClear() { super.loadAndClear(); load(); encodedForm = null; }