public byte[] toByteArray() { byte[] result = new byte[length()]; Pipe.copyBytesFromToRing(byteBuffer, startPosition, byteMask, result, 0, Integer.MAX_VALUE, result.length); return result; }
public byte[] toByteArray() { byte[] result = new byte[length()]; Pipe.copyBytesFromToRing(byteBuffer, startPosition, byteMask, result, 0, Integer.MAX_VALUE, result.length); return result; }
public byte[] toByteArray() { byte[] result = new byte[length()]; Pipe.copyBytesFromToRing(byteBuffer, startPosition, byteMask, result, 0, Integer.MAX_VALUE, result.length); return result; }
public int closeHighLevelField(int targetFieldLoc) { //this method will also validate the length was in bound and throw unsupported operation if the pipe was not large enough //instead of fail fast as soon as one field goes over we wait to the end and only check once. int len = length(); PipeWriter.writeSpecialBytesPosAndLen(p, targetFieldLoc, len, startPosition); p.closeBlobFieldWrite(); return len; }
public int closeHighLevelField(int targetFieldLoc) { //this method will also validate the length was in bound and throw unsupported operation if the pipe was not large enough //instead of fail fast as soon as one field goes over we wait to the end and only check once. int len = length(); PipeWriter.writeSpecialBytesPosAndLen(p, targetFieldLoc, len, startPosition); p.closeBlobFieldWrite(); return len; }
public int closeHighLevelField(int targetFieldLoc) { //this method will also validate the length was in bound and throw unsupported operation if the pipe was not large enough //instead of fail fast as soon as one field goes over we wait to the end and only check once. int len = length(); PipeWriter.writeSpecialBytesPosAndLen(p, targetFieldLoc, len, startPosition); p.closeBlobFieldWrite(); return len; }
public int closeLowLevelField() { int len = length(); Pipe.addAndGetBlobWorkingHeadPosition(p, len); Pipe.addBytePosAndLenSpecial(p,startPosition,len); p.closeBlobFieldWrite(); return len; }
public int closeLowLevelField() { int len = length(); Pipe.addAndGetBlobWorkingHeadPosition(p, len); Pipe.addBytePosAndLenSpecial(p,startPosition,len); p.closeBlobFieldWrite(); return len; }
public int closeLowLevelField() { int len = length(); Pipe.addAndGetBlobWorkingHeadPosition(p, len); Pipe.addBytePosAndLenSpecial(p,startPosition,len); p.closeBlobFieldWrite(); return len; }