public int valueOfUTF8(CharSequence cs) { pipe.reset(); Pipe.addMsgIdx(pipe, RawDataSchema.MSG_CHUNKEDSTREAM_1); int origPos = Pipe.getWorkingBlobHeadPosition(pipe); int len = Pipe.copyUTF8ToByte(cs, 0, cs.length(), pipe); Pipe.addBytePosAndLen(pipe, origPos, len); Pipe.publishWrites(pipe); Pipe.confirmLowLevelWrite(pipe, rawChunkSize); Pipe.takeMsgIdx(pipe); Pipe.confirmLowLevelRead(pipe, rawChunkSize); int meta = Pipe.takeByteArrayMetaData(pipe); int result = valueOf(Pipe.byteBackingArray(meta, pipe),Pipe.bytePosition(meta, pipe, Pipe.takeByteArrayLength(pipe)),Pipe.takeByteArrayLength(pipe),Pipe.blobMask(pipe)); Pipe.releaseReadLock(pipe); return result; }
public int valueOfUTF8(CharSequence cs) { pipe.reset(); Pipe.addMsgIdx(pipe, RawDataSchema.MSG_CHUNKEDSTREAM_1); int origPos = Pipe.getWorkingBlobHeadPosition(pipe); int len = Pipe.copyUTF8ToByte(cs, 0, cs.length(), pipe); Pipe.addBytePosAndLen(pipe, origPos, len); Pipe.publishWrites(pipe); Pipe.confirmLowLevelWrite(pipe, rawChunkSize); Pipe.takeMsgIdx(pipe); Pipe.confirmLowLevelRead(pipe, rawChunkSize); int meta = Pipe.takeByteArrayMetaData(pipe); int result = valueOf(Pipe.byteBackingArray(meta, pipe),Pipe.bytePosition(meta, pipe, Pipe.takeByteArrayLength(pipe)),Pipe.takeByteArrayLength(pipe),Pipe.blobMask(pipe)); Pipe.releaseReadLock(pipe); return result; }
public int valueOfUTF8(CharSequence cs) { pipe.reset(); Pipe.addMsgIdx(pipe, RawDataSchema.MSG_CHUNKEDSTREAM_1); int origPos = Pipe.getWorkingBlobHeadPosition(pipe); int len = Pipe.copyUTF8ToByte(cs, 0, cs.length(), pipe); Pipe.addBytePosAndLen(pipe, origPos, len); Pipe.publishWrites(pipe); Pipe.confirmLowLevelWrite(pipe, rawChunkSize); Pipe.takeMsgIdx(pipe); Pipe.confirmLowLevelRead(pipe, rawChunkSize); int meta = Pipe.takeByteArrayMetaData(pipe); int result = valueOf(Pipe.byteBackingArray(meta, pipe),Pipe.bytePosition(meta, pipe, Pipe.takeByteArrayLength(pipe)),Pipe.takeByteArrayLength(pipe),Pipe.blobMask(pipe)); Pipe.releaseReadLock(pipe); return result; }