org.wildfly.clustering.marshalling.protostream.ByteBufferMarshalledValueMarshaller Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.marshalling.protostream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.OptionalInt;
import org.infinispan.protostream.descriptors.WireType;
import org.wildfly.clustering.marshalling.ByteBufferMarshalledValue;
/**
* {@link ProtoStreamMarshaller} for a {@link ByteBufferMarshalledValue}.
* @author Paul Ferraro
*/
public enum ByteBufferMarshalledValueMarshaller implements ProtoStreamMarshaller> {
INSTANCE;
private static final int BUFFER_INDEX = 1;
@Override
public ByteBufferMarshalledValue