org.deeplearning4j.ui.stats.sbe.VarDataUTF8Encoder Maven / Gradle / Ivy
/*- Generated SBE (Simple Binary Encoding) message codec */
package org.deeplearning4j.ui.stats.sbe;
import org.agrona.MutableDirectBuffer;
@javax.annotation.Generated(value = {"org.deeplearning4j.ui.stats.sbe.VarDataUTF8Encoder"})
@SuppressWarnings("all")
public class VarDataUTF8Encoder {
public static final int ENCODED_LENGTH = -1;
private MutableDirectBuffer buffer;
private int offset;
public VarDataUTF8Encoder wrap(final MutableDirectBuffer buffer, final int offset) {
this.buffer = buffer;
this.offset = offset;
return this;
}
public int encodedLength() {
return ENCODED_LENGTH;
}
public static long lengthNullValue() {
return 4294967294L;
}
public static long lengthMinValue() {
return 0L;
}
public static long lengthMaxValue() {
return 1073741824L;
}
public VarDataUTF8Encoder length(final long value) {
buffer.putInt(offset + 0, (int) value, java.nio.ByteOrder.LITTLE_ENDIAN);
return this;
}
public static short varDataNullValue() {
return (short) 255;
}
public static short varDataMinValue() {
return (short) 0;
}
public static short varDataMaxValue() {
return (short) 254;
}
public String toString() {
return appendTo(new StringBuilder(100)).toString();
}
public StringBuilder appendTo(final StringBuilder builder) {
VarDataUTF8Decoder writer = new VarDataUTF8Decoder();
writer.wrap(buffer, offset);
return writer.appendTo(builder);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy