Class ProtoReader

java.lang.Object
com.codename1.io.grpc.ProtoReader

public final class ProtoReader extends Object

Low-level protobuf wire-format reader used by generated ProtoCodec implementations. Wraps a byte[] so the reader can remaining() and slice nested-message bodies without re-buffering.

Generated codecs call readTag() in a loop, dispatch on the field number, and call the appropriate readXxx method. Unknown fields are passed to skipField(int) -- the same recovery behaviour protoc-generated code exhibits.

  • Constructor Details

    • ProtoReader

      public ProtoReader(byte[] data)
    • ProtoReader

      public ProtoReader(byte[] data, int offset, int length)
  • Method Details