/** * Writes long value to the specified pipe * @param value long to be written * @param pipe pipe to be written to * @param <S> MessageSchema to be extended */ public static <S extends MessageSchema<S>> void addLongValue(long value, Pipe<S> pipe) { addLongValue(pipe.slabRing, pipe.slabMask, pipe.slabRingHead.workingHeadPos, value); }
/** * Writes long value to the specified pipe * @param value long to be written * @param pipe pipe to be written to * @param <S> MessageSchema to be extended */ public static <S extends MessageSchema<S>> void addLongValue(long value, Pipe<S> pipe) { addLongValue(pipe.slabRing, pipe.slabMask, pipe.slabRingHead.workingHeadPos, value); }
private void processLongSignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongSigned(name, id); } }
private void processLongSignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongSigned(name, id); } }
private void processLongUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongUnsigned(name, id); } }
private void processDecimal(String name, long id) { int pullDecimalExponent = visitor.pullDecimalExponent(name,id); Pipe.addIntValue(pullDecimalExponent, outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); }
public static <S extends MessageSchema<S>> void writeLL(Pipe<S> pipe, int msgIdx, long field1, long field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addLongValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
private void processLongUnsignedOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { processLongUnsigned(name, id); } }
public static <S extends MessageSchema<S>> void writeLL(Pipe<S> pipe, int msgIdx, long field1, long field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addLongValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
private void processDecimal(String name, long id) { int pullDecimalExponent = visitor.pullDecimalExponent(name,id); Pipe.addIntValue(pullDecimalExponent, outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); }
private void processDecimalOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullDecimalExponent(name,id), outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); } }
private void processDecimalOptional(String name, long id) { if (visitor.isAbsent(name,id)) { Pipe.addIntValue(FieldReferenceOffsetManager.getAbsent32Value(from), outputRing); Pipe.addLongValue(FieldReferenceOffsetManager.getAbsent64Value(from), outputRing); } else { Pipe.addIntValue(visitor.pullDecimalExponent(name,id), outputRing); Pipe.addLongValue(visitor.pullDecimalMantissa(name,id), outputRing); } }
public static <S extends MessageSchema<S>> void writeL(Pipe<S> pipe, int msgIdx, long field1) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeL(Pipe<S> pipe, int msgIdx, long field1) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLI(Pipe<S> pipe, int msgIdx, long field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(5==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLV(Pipe<S> pipe, int msgIdx, long field1, byte[] field2Backing, int field2Position, int field2Length) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addByteArray(field2Backing, field2Position, field2Length, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLV(Pipe<S> pipe, int msgIdx, long field1, byte[] field2Backing, int field2Position, int field2Length) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(4==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addByteArray(field2Backing, field2Position, field2Length, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLI(Pipe<S> pipe, int msgIdx, long field1, int field2) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(5==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLII(Pipe<S> pipe, int msgIdx, long field1, int field2, int field3) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.addIntValue(field3, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }
public static <S extends MessageSchema<S>> void writeLII(Pipe<S> pipe, int msgIdx, long field1, int field2, int field3) { assert(FieldReferenceOffsetManager.isValidMsgIdx(Pipe.from(pipe), msgIdx)); assert(6==Pipe.from(pipe).fragDataSize[msgIdx]) : "This constant does not this fragment size"; int size = Pipe.addMsgIdx(pipe, msgIdx); Pipe.addLongValue(field1, pipe); Pipe.addIntValue(field2, pipe); Pipe.addIntValue(field3, pipe); Pipe.confirmLowLevelWrite(pipe, size); Pipe.publishWrites(pipe); }