public static int bytesConsumedByFragment(Pipe ringBuffer) { return ringBuffer.ringWalker.nextWorkingTail>0 ? bytesConsumed(ringBuffer) : 0; }
public static int bytesConsumedByFragment(Pipe ringBuffer) { return ringBuffer.ringWalker.nextWorkingTail>0 ? bytesConsumed(ringBuffer) : 0; }
public static int bytesConsumedByFragment(Pipe ringBuffer) { return ringBuffer.ringWalker.nextWorkingTail>0 ? bytesConsumed(ringBuffer) : 0; }
private static int collectConsumedCountOfBytes(Pipe pipe) { if (pipe.ringWalker.nextWorkingTail>0) { //first iteration it will not have a valid position //must grab this value now, its the last chance before we allow it to be written over. //these are all accumulated from every fragment, messages many have many fragments. int bytesConsumed = bytesConsumed(pipe); Pipe.addAndGetBlobWorkingTailPosition(pipe, bytesConsumed); return bytesConsumed; } return 0; }
private static int collectConsumedCountOfBytes(Pipe pipe) { if (pipe.ringWalker.nextWorkingTail>0) { //first iteration it will not have a valid position //must grab this value now, its the last chance before we allow it to be written over. //these are all accumulated from every fragment, messages many have many fragments. int bytesConsumed = bytesConsumed(pipe); Pipe.addAndGetBlobWorkingTailPosition(pipe, bytesConsumed); return bytesConsumed; } return 0; }
private static int collectConsumedCountOfBytes(Pipe pipe) { if (pipe.ringWalker.nextWorkingTail>0) { //first iteration it will not have a valid position //must grab this value now, its the last chance before we allow it to be written over. //these are all accumulated from every fragment, messages many have many fragments. int bytesConsumed = bytesConsumed(pipe); Pipe.addAndGetBlobWorkingTailPosition(pipe, bytesConsumed); return bytesConsumed; } return 0; }