b3.entrypoint.fixp.sbe.CustodianInfoDecoder Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;
import org.agrona.DirectBuffer;
import org.agrona.sbe.*;
/**
* Custodian information is required for going private offer.
*/
@SuppressWarnings("all")
public final class CustodianInfoDecoder implements CompositeDecoderFlyweight
{
public static final int SCHEMA_ID = 1;
public static final int SCHEMA_VERSION = 5;
public static final String SEMANTIC_VERSION = "5.6";
public static final int ENCODED_LENGTH = 12;
public static final java.nio.ByteOrder BYTE_ORDER = java.nio.ByteOrder.LITTLE_ENDIAN;
private int offset;
private DirectBuffer buffer;
public CustodianInfoDecoder wrap(final DirectBuffer buffer, final int offset)
{
if (buffer != this.buffer)
{
this.buffer = buffer;
}
this.offset = offset;
return this;
}
public DirectBuffer buffer()
{
return buffer;
}
public int offset()
{
return offset;
}
public int encodedLength()
{
return ENCODED_LENGTH;
}
public int sbeSchemaId()
{
return SCHEMA_ID;
}
public int sbeSchemaVersion()
{
return SCHEMA_VERSION;
}
public static int custodianEncodingOffset()
{
return 0;
}
public static int custodianEncodingLength()
{
return 4;
}
public static int custodianSinceVersion()
{
return 0;
}
public static long custodianNullValue()
{
return 0L;
}
public static long custodianMinValue()
{
return 0L;
}
public static long custodianMaxValue()
{
return 4294967294L;
}
public long custodian()
{
return (buffer.getInt(offset + 0, BYTE_ORDER) & 0xFFFF_FFFFL);
}
public static int custodyAccountEncodingOffset()
{
return 4;
}
public static int custodyAccountEncodingLength()
{
return 4;
}
public static int custodyAccountSinceVersion()
{
return 0;
}
public static long custodyAccountNullValue()
{
return 0L;
}
public static long custodyAccountMinValue()
{
return 0L;
}
public static long custodyAccountMaxValue()
{
return 4294967294L;
}
public long custodyAccount()
{
return (buffer.getInt(offset + 4, BYTE_ORDER) & 0xFFFF_FFFFL);
}
public static int custodyAllocationTypeEncodingOffset()
{
return 8;
}
public static int custodyAllocationTypeEncodingLength()
{
return 4;
}
public static int custodyAllocationTypeSinceVersion()
{
return 0;
}
public static long custodyAllocationTypeNullValue()
{
return 0L;
}
public static long custodyAllocationTypeMinValue()
{
return 0L;
}
public static long custodyAllocationTypeMaxValue()
{
return 4294967294L;
}
public long custodyAllocationType()
{
return (buffer.getInt(offset + 8, BYTE_ORDER) & 0xFFFF_FFFFL);
}
public String toString()
{
if (null == buffer)
{
return "";
}
return appendTo(new StringBuilder()).toString();
}
public StringBuilder appendTo(final StringBuilder builder)
{
if (null == buffer)
{
return builder;
}
builder.append('(');
builder.append("custodian=");
builder.append(this.custodian());
builder.append('|');
builder.append("custodyAccount=");
builder.append(this.custodyAccount());
builder.append('|');
builder.append("custodyAllocationType=");
builder.append(this.custodyAllocationType());
builder.append(')');
return builder;
}
}