public static int copyToRingBuffer(int idx, byte[] target, final int targetIdx, final int targetMask, LocalHeap localHeap) {//Invoked 100's of millions of times, must be tight. final int offset = idx << 2; final int pos = localHeap.tat[offset]; final int len = localHeap.tat[offset + 1] - pos; copyToRingBuffer(target, targetIdx, targetMask, pos, len, localHeap.data); return targetIdx + len; }
public static int copyToRingBuffer(int idx, byte[] target, final int targetIdx, final int targetMask, LocalHeap localHeap) {//Invoked 100's of millions of times, must be tight. final int offset = idx << 2; final int pos = localHeap.tat[offset]; final int len = localHeap.tat[offset + 1] - pos; copyToRingBuffer(target, targetIdx, targetMask, pos, len, localHeap.data); return targetIdx + len; }
public static int copyToRingBuffer(int idx, byte[] target, final int targetIdx, final int targetMask, LocalHeap localHeap) {//Invoked 100's of millions of times, must be tight. final int offset = idx << 2; final int pos = localHeap.tat[offset]; final int len = localHeap.tat[offset + 1] - pos; copyToRingBuffer(target, targetIdx, targetMask, pos, len, localHeap.data); return targetIdx + len; }
public static void addLocalHeapValue(int heapId, int sourceLen, LocalHeap byteHeap, Pipe rbRingBuffer) { final int p = Pipe.getWorkingBlobHeadPosition((Pipe<?>) rbRingBuffer); if (sourceLen > 0) { final int offset = heapId << 2; final int pos = byteHeap.tat[offset]; final int len = byteHeap.tat[offset + 1] - pos; copyToRingBuffer(Pipe.blob((Pipe<?>) rbRingBuffer), p, rbRingBuffer.blobMask, pos, len, byteHeap.data); Pipe.addAndGetBlobWorkingHeadPosition(rbRingBuffer,len); } Pipe.addBytePosAndLen(rbRingBuffer, p, sourceLen); }
public static void addLocalHeapValue(int heapId, int sourceLen, LocalHeap byteHeap, Pipe rbRingBuffer) { final int p = Pipe.getWorkingBlobHeadPosition((Pipe<?>) rbRingBuffer); if (sourceLen > 0) { final int offset = heapId << 2; final int pos = byteHeap.tat[offset]; final int len = byteHeap.tat[offset + 1] - pos; copyToRingBuffer(Pipe.blob((Pipe<?>) rbRingBuffer), p, rbRingBuffer.blobMask, pos, len, byteHeap.data); Pipe.addAndGetBlobWorkingHeadPosition(rbRingBuffer,len); } Pipe.addBytePosAndLen(rbRingBuffer, p, sourceLen); }
public static void addLocalHeapValue(int heapId, int sourceLen, LocalHeap byteHeap, Pipe rbRingBuffer) { final int p = Pipe.getWorkingBlobHeadPosition((Pipe<?>) rbRingBuffer); if (sourceLen > 0) { final int offset = heapId << 2; final int pos = byteHeap.tat[offset]; final int len = byteHeap.tat[offset + 1] - pos; copyToRingBuffer(Pipe.blob((Pipe<?>) rbRingBuffer), p, rbRingBuffer.blobMask, pos, len, byteHeap.data); Pipe.addAndGetBlobWorkingHeadPosition(rbRingBuffer,len); } Pipe.addBytePosAndLen(rbRingBuffer, p, sourceLen); }