Class CodedOutputStream

java.lang.Object
io.opentelemetry.exporter.internal.marshal.CodedOutputStream

public abstract class CodedOutputStream extends Object
Protobuf wire encoder.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Method Details

    • computeInt64SizeNoTag

      public static int computeInt64SizeNoTag(long value)
      Compute the number of bytes that would be needed to encode an int64 field, including tag.
    • computeDoubleSizeNoTag

      public static int computeDoubleSizeNoTag(double unused)
      Compute the number of bytes that would be needed to encode a double field, including tag.
    • computeBoolSizeNoTag

      public static int computeBoolSizeNoTag(boolean unused)
      Compute the number of bytes that would be needed to encode a bool field.
    • computeByteArraySizeNoTag

      public static int computeByteArraySizeNoTag(byte[] value)
      Compute the number of bytes that would be needed to encode a bytes field.
    • computeByteBufferSizeNoTag

      public static int computeByteBufferSizeNoTag(ByteBuffer value)
      Compute the number of bytes that would be needed to encode a bytes field.