Class ArrayDecoders


  • final class ArrayDecoders
    extends java.lang.Object
    Helper functions to decode protobuf wire format from a byte array.

    Note that these functions don't do boundary check on the byte array but instead rely on Java VM to check it. That means parsing routines utilizing these functions must catch IndexOutOfBoundsException and convert it to protobuf's InvalidProtocolBufferException when crossing protobuf public API boundaries.