org.wildfly.clustering.marshalling.protostream.DefaultProtoStreamWriter 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 java.util.function.Function;
import org.infinispan.protostream.ImmutableSerializationContext;
import org.infinispan.protostream.ProtobufTagMarshaller.WriteContext;
import org.infinispan.protostream.impl.TagWriterImpl;
import org.wildfly.clustering.marshalling.ByteBufferOutputStream;
/**
* {@link ProtoStreamWriter} implementation that writes to a {@link TagWriterImpl}.
* @author Paul Ferraro
*/
public class DefaultProtoStreamWriter extends AbstractProtoStreamWriter implements Function