Package com.google.protobuf

Examples of com.google.protobuf.MessageLite.toByteArray()


   * @return the byte array
   */
  public static final byte[] seriOne(Object o) {
    if (o instanceof MessageLite) {
      MessageLite gen = (MessageLite)o;
      return gen.toByteArray();
    } else {
      throw new SeriException("Message is not protobuf type: " + o.getClass());
    }
  }

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.