Examples of CodedInputStream


Examples of com.google.protobuf.CodedInputStream

            }
        }

        @Override
        public GaugeRollup fromByteBuffer(ByteBuffer byteBuffer) {
            CodedInputStream in = CodedInputStream.newInstance(byteBuffer.array());
            try {
                byte version = in.readRawByte();
                if (version != VERSION_1_ROLLUP)
                    throw new SerializationException(String.format("Unexpected serialization version: %d", (int)version));
                return deserializeV1Gauge(in);
            } catch (Exception e) {
                throw new RuntimeException("Deserialization Failure", e);
View Full Code Here

Examples of com.jd.glowworm.util.CodedInputStream

   
  }
 
  public PBDeserializer(byte[] thePBBytesParm)
  {
    theCodedInputStream = new CodedInputStream(new BufferInputStream(thePBBytesParm));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.