org.infinispan.commons.marshall.WrappedByteArray$___Marshaller_dd5f1f82b70f419159a02b94c2ffa39a035efa36bc3f94e3bec8f1fb78d5e078 Maven / Gradle / Ivy
/*
Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
for class org.infinispan.commons.marshall.WrappedByteArray
*/
package org.infinispan.commons.marshall;
import org.infinispan.commons.marshall.WrappedByteArray;
/**
* WARNING: Generated code! Do not edit!
*
* @private
*/
@javax.annotation.processing.Generated(
value = "org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor",
comments = "Please do not edit this file!"
)
@SuppressWarnings("all")
public final class WrappedByteArray$___Marshaller_dd5f1f82b70f419159a02b94c2ffa39a035efa36bc3f94e3bec8f1fb78d5e078 extends org.infinispan.protostream.annotations.impl.GeneratedMarshallerBase implements org.infinispan.protostream.ProtobufTagMarshaller {
@Override
public Class getJavaClass() { return org.infinispan.commons.marshall.WrappedByteArray.class; }
@Override
public String getTypeName() { return "org.infinispan.persistence.commons.WrappedByteArray"; }
@Override
public org.infinispan.commons.marshall.WrappedByteArray read(org.infinispan.protostream.ProtobufTagMarshaller.ReadContext $1) throws java.io.IOException {
final org.infinispan.protostream.TagReader $in = $1.getReader();
byte[] __v$1 = null;
boolean done = false;
while (!done) {
final int tag = $in.readTag();
switch (tag) {
case 0: {
done = true;
break;
}
case (1 << org.infinispan.protostream.descriptors.WireType.TAG_TYPE_NUM_BITS | org.infinispan.protostream.descriptors.WireType.WIRETYPE_LENGTH_DELIMITED): {
__v$1 = $in.readByteArray();
break;
}
default: {
if (!$in.skipField(tag)) done = true;
}
}
}
return new org.infinispan.commons.marshall.WrappedByteArray(__v$1);
}
@Override
public void write(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext $1, org.infinispan.commons.marshall.WrappedByteArray $2) throws java.io.IOException {
final org.infinispan.protostream.TagWriter $out = $1.getWriter();
final org.infinispan.commons.marshall.WrappedByteArray o = (org.infinispan.commons.marshall.WrappedByteArray) $2;
{
final byte[] __v$1 = o.getBytes();
if (__v$1 != null) $out.writeBytes(1, __v$1);
}
}
}