private static void prepWriteMessageStart(Pipe pipe, final int cursorPosition, FieldReferenceOffsetManager from) { assert(isValidStart(from,cursorPosition)) : "cursorPosition must be a valid message start but it is not. Value is "+cursorPosition; //each time some bytes were written in the previous fragment this value was incremented. //now it becomes the base value for all byte writes Pipe.markBytesWriteBase(pipe); //Start new stack of fragments because this is a new message pipe.ringWalker.activeWriteFragmentStack[0] = Pipe.workingHeadPosition(pipe); Pipe.slab(pipe)[pipe.slabMask &(int)(Pipe.workingHeadPosition(pipe) + from.templateOffset)] = cursorPosition; }
private static void prepWriteMessageStart(Pipe pipe, final int cursorPosition, FieldReferenceOffsetManager from) { assert(isValidStart(from,cursorPosition)) : "cursorPosition must be a valid message start but it is not. Value is "+cursorPosition; //each time some bytes were written in the previous fragment this value was incremented. //now it becomes the base value for all byte writes Pipe.markBytesWriteBase(pipe); //Start new stack of fragments because this is a new message pipe.ringWalker.activeWriteFragmentStack[0] = Pipe.workingHeadPosition(pipe); Pipe.slab(pipe)[pipe.slabMask &(int)(Pipe.workingHeadPosition(pipe) + from.templateOffset)] = cursorPosition; }
private static void prepWriteMessageStart(Pipe pipe, final int cursorPosition, FieldReferenceOffsetManager from) { assert(isValidStart(from,cursorPosition)) : "cursorPosition must be a valid message start but it is not. Value is "+cursorPosition; //each time some bytes were written in the previous fragment this value was incremented. //now it becomes the base value for all byte writes Pipe.markBytesWriteBase(pipe); //Start new stack of fragments because this is a new message pipe.ringWalker.activeWriteFragmentStack[0] = Pipe.workingHeadPosition(pipe); Pipe.slab(pipe)[pipe.slabMask &(int)(Pipe.workingHeadPosition(pipe) + from.templateOffset)] = cursorPosition; }