/** * Writes given int as String in specified pipe * @param pipe to be written to * @param loc field to write data * @param value int value to be converted */ public static void writeIntAsText(Pipe pipe, int loc, int value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 12+ Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertIntToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }
/** * Writes given int as String in specified pipe * @param pipe to be written to * @param loc field to write data * @param value int value to be converted */ public static void writeIntAsText(Pipe pipe, int loc, int value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 12+ Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertIntToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }
/** * Writes a long as a String in given pipe * @param pipe to be updated * @param loc for field to be updated * @param value long to write to specified location */ public static void writeLongAsText(Pipe pipe, int loc, long value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 21+Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertLongToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }
/** * Writes a long as a String in given pipe * @param pipe to be updated * @param loc for field to be updated * @param value long to write to specified location */ public static void writeLongAsText(Pipe pipe, int loc, long value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 21+Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertLongToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }
/** * Writes given int as String in specified pipe * @param pipe to be written to * @param loc field to write data * @param value int value to be converted */ public static void writeIntAsText(Pipe pipe, int loc, int value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 12+ Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertIntToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }
/** * Writes a long as a String in given pipe * @param pipe to be updated * @param loc for field to be updated * @param value long to write to specified location */ public static void writeLongAsText(Pipe pipe, int loc, long value) { assert(LOCUtil.isLocOfAnyType(loc, TypeMask.TextASCII, TypeMask.TextASCIIOptional, TypeMask.ByteVector, TypeMask.ByteVectorOptional)): "Value found "+LOCUtil.typeAsString(loc); int max = 21+Pipe.getWorkingBlobHeadPosition((Pipe<?>) pipe); int len = Pipe.leftConvertLongToASCII(pipe, value, max); finishWriteBytesAlreadyStarted(pipe, loc, len); Pipe.addAndGetBlobWorkingHeadPosition(pipe,len); }