Class BytesAnyValueStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.BytesAnyValueStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<java.nio.ByteBuffer>
final class BytesAnyValueStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<java.nio.ByteBuffer>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static BytesAnyValueStatelessMarshalerINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateBytesAnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBinarySerializedSize(java.nio.ByteBuffer value, MarshalerContext context)Returns the number of bytes marshaling given value will write in proto binary format.voidwriteTo(Serializer output, java.nio.ByteBuffer value, MarshalerContext context)Marshal given value using the providedSerializer.
-
-
-
Field Detail
-
INSTANCE
static final BytesAnyValueStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, java.nio.ByteBuffer value, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshalerMarshal given value using the providedSerializer.- Specified by:
writeToin interfaceStatelessMarshaler<java.nio.ByteBuffer>- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(java.nio.ByteBuffer value, MarshalerContext context)Description copied from interface:StatelessMarshalerReturns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSizein interfaceStatelessMarshaler<java.nio.ByteBuffer>
-
-